Solar and wind are the cheapest electrical generation technologies, even when backed by battery storage [1]. Not that Germany didn't misstep by shuttering nuclear for coal, but they also have transmission challenges between high renewable potential geographies and load centers [2].
[1] https://www.lazard.com/media/451419/lazards-levelized-cost-o...
[2] https://www.greentechmedia.com/articles/read/germanys-stress...