Batteries make that less true today than in the past. Solar/wind + batteries are becoming cost-competitive with coal for energy on most days (24x7).
24x7 every day of the year is much harder, though. Solar/wind + batteries are nowhere near cost competitive for reliability, though. You'd have to build a ridiculous (read: very uneconomical) multiple of typical battery capacity to make it through the long, cloudy, low-wind periods in the winter.
On the bright side, enhanced geothermal is starting to look like it may be economically competitive in the near future. If it pans out, it could repurpose a lot of the technology and labor force from the oil and gas industry to instead produce clean power. And who knows—maybe the current nuclear push will pan out and we'll have another option for reliable base load.