Water electrolysis is around 60-80 percent efficient. Hydrogen fuel cells are around 40-60 percent efficient. Plus you spend additional energy to either compress or cool the hydrogen in order to be able to store it.
Electricity storage in a lithium-ion battery is on the order of 98% efficient, and electric motors are around 90% efficient (if you take into account the whole drivetrain).