Human activities in general despoil the planet, it's a matter of trade offs, I'm not sure there is much that isn't that way. If we replace coal with nuclear, we would get some advantages, but we'd also replace one large lot of problems with some smaller ones. Trade offs.
In some theoretical future, perhaps recharging is effected using wind and solar, but those have environmental downsides as well, and perhaps batteries are made without previous metals like cobalt, but whatever replaces them would have some issues. The entire petrochemical chain has issues beyond just CO2 generation.
Fusion perhaps COULD be the most benign source of energy we could have any time "soon", but ...