Just forget the elephant in the room that that energy to charge your car comes from coal, natural gas, nuclear, all of which are bad. A small amount comes from hydro, wind, and solar.
And also don't forget that the grid would need to be massively upgraded to support large scale electric car charging.
No- just no. Literally none of this. The grid does not have to be massively upgraded to allow for electric car charging. That is a myth. Tesla also introduced a whole home battery system that charges vehicles when electricity is plentiful and manages renewable energy sources- like wind and solar power. And as for where that electricity comes from? That is up to us as consumer and the electric company on whether the sources produce carbon monoxide. There are no alternatives to an internal combustion engine preceding carbon monoxide but Tesla has taken the first step of at least eliminating the last and one of the largest users of oil- the internal combustion engine.