I'm assuming currently proven tech of batteries. And we need to act now for climate change, with current tech.
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)