Let's use plastics as a thought experiment.
Say we mandated a return to cardboard and glass rather than plastic for general goods packaging. I am not a materials or logistics expert, but I think it's safe to state that the strength to mass/volume properties of plastic are very good compared to predecessors.
I suspect that a shift back to cardboard and glass would lower the packing density and raise the overall unit weight of shipped goods, resulting in more shipments overall. is it a 10% difference? 20%? I have no idea, but this begs the question: is an xx% increase of shipment traffic, and all of the related impacts to the environment (diesel exhaust, brake dust, spillage, road wear and tear, rare earth mineral mining for CATs, ship related ocean pollution, etc.) better or worse than the environmental impact of plastic goods packaging?
I have no idea what the result of this calculus would be, but I'm comfortable stating: "the issue is way more complex than plastic = bad". We haven't even touched on the economic impacts of goods costing 10%-20% more. Someone should do a study (i suspect that many have been done over the years)
The question as to whether or not AI is a solution is a bit ridiculous in my opinion. I don't think that the internet had a clear purpose when it was created. If it did have a clear purpose, I don't expect that it's provided value vs how much coal it burned in the early days was very high.
How many grams of CO2 were exhausted by ML models working to gain insight into protein folding or genome mapping before we started realizing value? Is it relevant? Can the value be understood without the benefit of hindsight?
tl;dr: it's complicated and interconnected. a plastic reduction mandate may very well just shift pollution type and venue.
What's the right answer? I have no clue. What I can say is that I hope that some people (or AI) smarter than me considers these and many other factors while working for a solution.