They will not be carrying the hydrogen in a compressed form. Most solutions are to carry the water and split the hydrogen and oxygen on demand. This reduces risk of explosion.
The maximum amount of energy you can get out of combining hydrogen and oxygen is exactly the minimum energy required to split water into it's components.
How efficient is that vs just charging a battery with the solar cell?