Not this old trope again!

Only 39% of the electricity generated in the US is from coal and that number is going down.
Energy production is more efficient in a power plant than it is in a car engine. To use an example with an identical source fuel, burning natural gas in a power plant is about
60% efficient, meaning 40% of the energy of the fuel is lost in the energy production process. In a car, burning gas is less than 25% efficient, with the vast majority of the energy lost to heat. The larger more complex system at a power plant will always be far better at capturing waste heat than a tiny car engine. The increased efficiency means that even a car running
purely on coal-generated electricity will emit carbon at the same rate as a gas car that gets 30 miles per gallon—which would be a significantly cleaner-than-average gas car.
Link for the full details.
BTW let me know when you can run a gas car on solar power!