Nobody is denying that insensitive extraction of minerals can be very polluting. China especially is guilty of some pretty appalling environmental practice. They of course would say it's because of our insatiable demand for cheap products with no questions asked.
One might equally point to
https://sciencing.com/list-7459738-environmental-impacts-oil-extraction.htmlor
https://www.wilderness.org/articles/blog/7-ways-oil-and-gas-drilling-bad-environmentor
https://www.frontiersin.org/articles/10.3389/fenvs.2016.00058/fulland so on and on and on.
However you want to spin it, the fact of the matter is that the fossil fuel industry has a much greater negative environmental impact than the EV industry, as multiple studies have demonstrated.