Wind, water, solar, geothermal energy…
And battery production (and mining for materials) pollutes the environment as well.
So let's not compare only parts of the system ... let's be real here
Even with coal electricity, electric cars have lower total-lifetime CO2 emissions.
Also, the more low-hanging fruit we fix, the more time we have left for the hard stuff.