Not just any coal, but lignite, the nastiest, dirtiest kind of coal. Definitely greener than nuclear. /s
Germany spent an insane amount of money, punished the use of electricity effectively (therefore undermining their own competitiveness in EVs), caused a significantly negative impact on household finances and industrial competitiveness (to the advantage of coal-powered China) and still only gets roughly US level of cleanliness in electricity. Because they simultaneously decided to get rid of nuclear power plants. shrug