Nuclear power is generated on demand and allows a full decarbonization of the power grid as can be seen France.
Solar just produces when the sun is shining meaning you can’t build a power grid on it.
Just comparing total generation over a year is comparing apples and oranges.
You can if you store the energy somehow.
This I leave to your imagination.
A kWh is a kWh. A kWh of either solar or nuke means a kWh of coal or gas was not burnt. Seems like apples to apples to me.