As was mentioned before, this is a bit vague. However to try to answer the question, I think the comparison needs to be done from:
hydrogen generation, or battery charging, to
electricity generation
The hydrogen process and the battery charging process are very similar. In both cases, you have...