Agreed. It’s very cheap to mass produce solar panels. The components that go into nuclear power stations must have a very high precision and low failure rate.
The cost to produce such components that must safely operate in very demanding conditions is prohibitively expensive in comparison to producing a solar panel.
Solar panels will always win because you’ll never have the required demand to mass produce nuclear power station components.
It’s really that simple.