- For local polution electric cars are green, no perception there

- For CO2 as you write, it depends entirely on how the electricity is made. I also like reading studies on the matter, some are well made ( usually those where you can see all inputs and calculations), quite a few are just clickbait-level

All the serious studies show that on current european/EU energy mix electric cars are greener than petrol already now (given they drive at least 150k ish km over their life). Doesn't mean they are automatically greener elsewhere.