Coal also isn’t really energy dense since so much of the energy is wasted when converting to electricity
Rankine cycle efficiency can be up to 45%; monocrystalline solar panels ~25%? I suppose you aren't paying for the sunshine, but if cloudy days affected coal power, James Watt wouldn't be famous.
It is still one of the densest sources. It's just not as dense as it naively seems.