Hydrogen with electrolysis and fuel cell must be seen as a battery technology. Electric power is used with the electrolysis and is taken from the fuel cell.
Where is there natural occurence of hydrogen on the earth? Nowhere! One can produce hydrogen from fossil gas occurence, but then the hydrogen is a fossil energy source like natural gas. One can produce hydrogen with electrolysis from water, but then is hydrogen is nothing else than a battery technology.
Batteries are charged by electric power. Batteries deliver electric power by discharging. But You never take out more electric power from a battery than previously stored. An essential quality criteria of a battery technology is how many percent of the stored energy can be recovered.
Huge loss chain with the hydrogen
liquefaction to -253 degrees Celsius
energy for the transport to the gas stations
energy for the preservation of the liquid state in the tanker
storage in the gas station with the power demand for the preservation of the liquid state
efficiency of the fuel cell
30% of the electric power for the electrolysis up to the power at the wheels is estimated very optimistically. To keep the hydrogen liyquid in the tnak is an other source of unbelievable losses: the vaporization