Your idea to use it to iron out the economics, though, might have some merit if the price fluctuations are high enough (which is what motivated us to begin with)
The cells dont like running in the reverse direction so you either research bidirectional cells or double the capital costs making cells optimized for each direction. Also, over potentials are pretty high and the catalysts foul easily but for the cleanest of inputs.
Also, is RO the cheapest for DS? I thought modern distillation is back on top, especially if you have waste heat
The "fully charged show" sometimes have videos on this and similar topics. This [0] video goes through the pros and cons of using hydrogen in different ways
My takeaway is that as much of the energy as possible should be used without converting it. This avoids the substantial losses converting to and from hydrogen. But storage is one of the viable uses.
The problem is that the amount of energy you get back would be fairly small in comparison to the input energy. It might not be economically practical. The amount of energy you can reasonably store per unit of input energy might not ever surpass the cost of the equipment to extract the energy and put it back into the grid.
There's a minimum energy cost in separating water from salt. Salt dissociated into water has a lower energy state than separate salt and water molecules. You have to put that much energy back into the salt ions to pull them out of solution, and they will keep that energy until dissociated again.
So you have to pay the cost of entropy, then pay for all the energy loss in the combustion, capture, and conversion stages. I'm not sure if you'd get enough energy out to ever be worth the trouble.
RO can be more efficient than electrolysis. The major factor is that electrolysis wastes a good fraction of the input energy on heating the water. On the other hand, RO requires high pressures, which is energy intensive.
RO is generally more efficient overall, but either way you have to pay the cost of reversing entropy.