The production of EVs, even if using lithium, cobalt, and rare earth metals, is a relatively small amount and only during production during the scaling-up years before domestic recycling programs are available to create a nearly closed-loop system whereas the fueling of a gasoline vehicle from crude is a on-going lifetime consumable (I know fuel for EVs is multi-varied and can include oil). Let's not blow-up the the small amount of mined material at production disproportionately. Nothing is absolute. Nothing is 100% anything.
Tesla is going to be starting domestic lithium production (starting with refining). Even though Tesla batteries use very little cobalt, they have been selling a lot of LFP-based batteries that use 100% cobalt-free cells. They are also planning to go back to using zero rare earth metals in their permanent-motor drivetrains in future vehicles (until the Model 3, Tesla used AC induction motors exclusively, so never used rare earths before 2017).
Last year, Tesla disclosed all suppliers for their lithium, cobalt, and nickel. You can see that here:
https://electrek.co/2022/05/06/tesla-list-battery-material-suppliers-long-term-nickel-deal-vale/ Mining and refining sites include Australia, Argentina, Canada, China, DRC, New Caledonia, USA.
If you read the latest Impact Report (
https://www.tesla.com/impact), you'll see that Tesla has strict policies for ensuring they source responsibly and have strict requirements for their entire supply chain. They constantly address issues of forced labor, human rights, human trafficking, and terrorism funding. Even at this year's shareholder meeting, a ridiculous "shareholder" proposal about child-labor was brought up again -- there seems to be no getting away from these "concerns," much like range anxiety.
I'm most familiar with Tesla, so I cannot speak to how much better or worse the other EV manufacturers are with their supply chain and manufacturing processes. Point is, there are ways to achieve a better, less negatively-impactful personal transportation product with an EV than a gasoline vehicle. And we are moving in that direction. A gasoline vehicle just cannot provide that future.