I drove 1800 miles in a Hydrogen Car

Let’s say we use solar panels to produce hydrogen from water( currently it is catalyzed from fossil fuels). You transform electrons and store it in hydrogen liquified under high pressure. You lose 30 % because water has 2 molecules of hydrogen and one oxygen, plus the energy to pump and cool it. The same scenario with solar panels, one electron is bumped and it goes directly to the battery, minus maybe 10% inefficiency.