If you read the literature analysing historic nuclear costs around the world, this just isn't true. Nuclear reactors are complex 'mega-projects' requiring coordination across a vast number of actors, specialist work under the constraints of a construction sites, and which - because of lower numbers of reactors, changing and adapted design, diffuse consortia - have failed to push down costs through learning-by-doing. A study just over a decade ago found that ~98% of nuclear projects involve schedule overruns. Because nuclear projects involve extreme capital costs, this means: (i) vast sums have to be paid in interest over the build time; (ii) states/taxpayers/consumers usually bear some of the risk.
Compare a nuclear project to a solar panel. Solar is cheap, simple, commoditised, flexible, and is riding on almost miraculous learning curves. If dispatchable energy can be solved, beyond just gas/coal plants, ideally with long-duration storage based on the conversion of electricity, then this is going to be an infinitely better option. It's also just not clear what role nuclear plants have given that renewables need highly dispatchable power to ramp up and down according to their variable output, not baseload nuclear power.