While this is technically true, I think a developed-ish nation might blow up your electric facilities before it would destroy a city.
There's just no practical way to harden all of it against attack. And a tiny chance of some hypothetical future war isn't a good reason to choose a technology (combusting fossil fuels) that's gonna kill your own citizens every year, guaranteed. Why do your hypothetical future enemy's job for them?
If all you want to do is to knock out the electrical system of a country, you can use an EMP burst bomb over that country, and the grid will be down for months.