Are electric vehicles really so climate friendly?

EVs produce more CO2 than say diesel – it’s just they emit via the power plant not the exhaust pipe.