A lot of these questions can be better understood by looking at actual numbers (dollars or joules). For example, in this important reaction pair:
2H2O +

️ -> 2H2 + O2
2H2 + O2 -> 2H2O +

️
----------------------------------

️ ->

️
How many kwh of retail electricity do you recover per kwh of retail electricity consumed? One big problem with hydrogen as fuel is the cost of storing or transporting it, but these costs are avoided when hydrogen generated during daylight (or high winds) is then burned just half a mile away at nighttime (or on windless days). Minimal transport is needed; and storage for just 12 hours. (Or convert the hydrogen to ammonia, which is also valuable and less expensive to transport.)
Similarly a comparison between renewables and nuclear would be easier if we looked at hard numbers and projections. Of course this is going to run into difficulties. For example, one alleged drawback to nuclear is the risk of weapons proliferation: What dollar cost do we associate with Senegal or Burma getting H-bombs?
Proliferation is a massive red herring.
Hydrogen bombs require fusion expertise and you cannot get that from power plants, which are exclusively fission based.
And making fission bombs (A-bombs, not H-bombs) using a modern (ie post-1960s) power reactor is so difficult and expensive that you are always better off just having a separate weapons program and leaving your power plants alone.
Making A-bombs either requires high enrichment of uranium, which a power plant can’t help with other than by providing electricity to the enrichment plant (that could just as well come from any other generation technology); Or production of 239Pu that contains only a trace of 240Pu - something that a power generation plant does very poorly.
In every case of a nation developing an A-bomb apart from India, the bomb was developed before their first power reactor was even built. In some cases (eg North Korea) they have A-bombs and no nuclear power program at all. In India, their bomb program uses its own Pu production reactors that don’t generate electricity.
The hybrid reactors designed in the 1950s and ‘60s to make both electricity and Pu for weapons were all pretty shit at both jobs. The UK’s Magnox design generated pathetic amounts of both products; The USSR’s RBMK design was both pathetic and astonishingly and stupidly dangerous, and remains the only reactor type in history that has managed to kill people not employed at the plant.
As the Koreans demonstrate, a nation state that wants an A-bomb has no need of a nuclear power generation capability at all; And (per South Korea) a nation state that has lots of nuclear power stations and is under serious military threat from a nuclear armed neighbour will nevertheless not necessarily seek to develop a bomb of their own.
If Senegal or Myanmar want an atom bomb, they will develop one whether or not they have a nuclear power industry. Just like North Korea did; And for that matter, just like the USA did.