This ignores the kind of damage being caused. In the case of the article, they're talking about chemical runoff from lithium mines into waterways.
Just because you stop burning fossil fuels, doesn't mean those waterways are going to magically stop being polluted, or that the pollution in those waterways won't have drastic effects on ecosystems.
Every time we damage the planet, we damage it. Polluting waterways on one side of the world won't be mitigated by curbing fossil fuel addiction elsewhere.
A lesser evil is an evil nevertheless, it's true. But being lesser, it's easier to overcome later.
We used to burn wood and mine for coal, then drilled for oil, then fracking for gas, and now mining lithium. The environmental problems are still there but the consumer side sounds "greener" with each iteration. Personally, I find the idea of replacing all cars with electric cars to be backwards. Why when you can use this as a turning point to reduce dependence on personal vehicles and pursue alternatives?