Actually, even when charged from coal-powered stations, EVs are generally less environmentally damaging than gasoline cars. Studies show that BEVs have lower life-cycle emissions than ICEVs in most regions. Over their lifetime, EVs generate millions of grams less carbon than gasoline cars. While the benefits of EVs are smaller in countries with coal-intensive electricity, they can still have similar or lower lifetime emissions compared to efficient conventional vehicles like hybrids. As countries move towards cleaner energy, EVs will only get greener. So, even with coal power, EVs are still a better choice for the environment.
https://climate.mit.edu/ask-mit/are-electric-vehicles-definitely-better-climate-gas-powered-cars
https://theicct.org/sites/default/files/publications/Global-LCA-passenger-cars-jul2021_0.pdf