The NIMBY question is a legitimate social one to solve. It’s easy to sit and say that, but if you were facing a giant pit, dust problems, and leaking toxic mine tailings in your literal backyard, as I am, you might find yourself with a different point of view on the utility of it. It’s also possible you can truly look past that and accept it, I don’t know, but in my case this is the equivalent of bulldozing a favorite city park because corporate interests in the supply chain need to build batteries. Maybe it needs to happen, I don’t know, but I’ll tell you it’s a bitter pill to swallow and one that doesn’t come with much empathy from the folks calling for bulldozing my backyard for their benefit.
You're right that it's not a simple problem. Individuals face consequences for decisions made by people with no stake. On the whole though, mining done in a well-regulated country with accountability and citizens with a means to environmental justice is better than mining done in countries where you get your lot and die of lead poisoning at 40.