Nuclear is less safe than grid solar, it slightly beats rooftop solar because standing on roofs is dangerous and most solar installs are new.
Hydroelectric vs nuclear is tricky because large dams save lives and by reducing flooding etc, and installing hydroelectric when building a dam is much safer than building the dam in the first place. Which makes calculating the deaths from hydroelectric power tricky. Low head dams on the other hand are dangerous, but are largely abandoned technology.