Whether you're looking at hydrogen or hydrocarbons, you need some chemical energy carrier mechanism. In the long run, either will have to be formulated, and yes, there's about a 50% efficiency hit straight off the top in elecrolysing hydrogen.
But if you're trading an abundant, variable energy source (say, peak solar which is otherwise wasted) for a scarce but valuable and useful store, that's a net win.
Note that whether you're formulating H2 or hydrocarbons, the energy cost is about the same (the carbon sequestration from seawater mentioned above is low energy cost), though it requires fairly substantial capital investments.