Cost is a factor but not the only factor. Intermittency is a factor. Geographic limitation is a factor. Land consumption is a factor.
Cheap intermittent energy is an okay supplement, but cannot reliably deliver when it is needed. Hydroelectric and geothermal are great, non-intermittent clean energy but are impossible to build without the right geography. Fossil fuels are cheap, and deliver power anywhere but emit carbon. Nuclear power isn't as cheap as fossil fuels or intermittent sources. But it's the cheapest non-intermittent source that isn't geographically dependent.
If our goal is to fully replace fossil fuels, then nuclear is the best option (besides building geothermal and hydro where we can). Sure, solar thermal can deliver clean energy without the need for additional energy storage. But we could build twice as much capacity with nuclear and use a fraction of the land, and avoid having to build larger plants in the north and south, and avoid seasonal output fluctuations.
We could wait for solar thermal to get cheaper than nuclear (and assume that the cost of nuclear also remains static). Or we could just build nuclear power. The latter has the advantage of having consistent generation regardless of weather and time of year, and consuming a fraction of the amount of land.
Wind power has consistent output over long periods of time. But we still need to make the power grid resilient to fluctuations, which would require immense amounts of energy storage. To put it in perspective how infeasible energy storage is, take a look at California's latest energy projects. The current largest storage plant has 183MWh of capacity, and a planned one has a predicted 300Mwh of capacity[1]. By comparison, the Diablo Canyon plant generats 2,2000MWh of energy every hour [2]. These two energy storage plants can only store 5 minutes and 9 minutes worth of power generated by the Diablo Canyon plant respectively.
1. https://www.weforum.org/agenda/2018/11/california-will-repla...
2. https://en.wikipedia.org/wiki/Diablo_Canyon_Power_Plant