I don't understand - Why the choice?
Solar + battery backup is currently cheaper than coal, and seems to be continuing its pattern of halving in price around every seven to ten years
It doesn't make economic sense to build coal power plants for most of the world
It takes on average six years to build a coal or gas power plant. During that six years, the price of solar will have almost halved again