The thing to remember is that hydrogen is not a natural fuel like coal or oil or natural gas. You create hydrogen by using some other energy source to break down water or another hydrogen compound.
Thus hydrogen should be regarded only as an energy storage medium.