Luckily solar panels work for 30+ years while coal works for only as long as you burn it. You can also recycle solar panels, but try reversing entropy to get your coal back and you’ll see what’s up. Cloudy days are solved by wind, ocean energy, geothermal, storage, etc.
"Cloudy days are solved by wind, ocean energy, geothermal, storage,"
Or, as Homer Simpson famously put it..."I dunno; Internet?"
But seriously, there's no significant recycling of solar panels, coal extraction is a known process, and good luck running an industrial economy exclusively on renewables.