Electricity to H2 to electricity has horrendous efficiency (about 20% at most IIRC). We'd be much better off CO2-speaking using it to replace coal in steel production, and replace gas in fertilizer production. Both of which are proven tech (but not globally deployed, as coal and gas are cheap)
https://www.irena.org/-/media/Files/IRENA/Agency/Publication...
https://www.sciencedirect.com/topics/engineering/round-trip-...
The round trip efficiency is 30% or more and rising with better electrolysis and reverse electrolysis being developed.
For hydrogen, we have to solve the horrible cycle efficiency of its storage. It's not so bad for use as a fuel (e.g. for airplanes), but as static storage hydrogen is currently a very bad choice.
But hydrogen efficiency is improving as fast as all renewable tech.
I tell you what: show me a cost optimized renewable energy system in which the electrolyzers have a capacity factor of 5%.
With current and projected reserves we can manage intra-day requirements for the whole world. This is the we mine it all option.
But we need intra-year storage capacity.
Nuclear is clearly the easier and only option (and the most environment-friendly to me, considering the mining requirements)