Coal and nuclear are uncompetitive simply from the cost of the steam side. Today you can just about give a steam plant free energy, and it still makes a loss.
Solar or wind does not have this limitation. CCGT gas plants get around it by having a turbine giving raw mechanical power and then utilizing the same awful steam side to get the last percentage points of efficiency at a much smaller required scale.
Coal still gets built where gas infrastructure does not exist, but that's about it.