Right now coal is not cheap - China and India are the only ones building new coal stations and in the case of China, the new coal capacity is not being added for economic reasons but because of the local vs central government politics.
The economics of electricity generation have been transformed in the last couple of years - for example, the LCOE from on-shore wind and solar has dropped 80-90% in less than 10 years. Prices for renewables and even grid-scale batteries are falling so fast that you cannot even trust financial analysis of electricity generation from a year ago.
Burning coal is now 2 to 3 times as expensive as on-shore wind, for example. Nuclear is over times as expensive. Where governments aren't forcing the market to use coal, nobody is building new coal generators.
This price shift has had a very visible effect on coal generation for example - you can see it in graphs of global electricity sources - after a long period of growth, coal generation (as a share of the total) has been dropping since 2013.
The fact that wind and solar are not dispatchable unlike coal and nuclear turns out to not actually be a deal-breaking problem for expanding renewable generation considerably.
Quite a few European countries which now generate nearly 50% of their electricity through renewables. None have grid-scale batteries and many don't have nuclear. As a whole Europe gets about a third of their electricity from renewables. And even the US is at about 20-25%?
You can achieve these sort of percentages with a low-tech approach. You over-provision wind/solar generation and use derating in the case of wind to cut generation if demand is very low. This is feasible because of the cheapness of these power sources.
In tandem with NG peaker plants and a small amount of storage (hydro and some batteries for stabilization) and/or interconnectors, we have seen countries achieved 40%+ renewable electricity without any effect on the reliability of domestic supply. This share is still rising, so the limits of this approach are not yet apparent.