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).
[0]: https://newatlas.com/energy/hysata-efficient-hydrogen-electr...
What always matters most is cost. Inefficiency will get cheaper and cheaper as generation cost falls. Switching from gold & platinum catalyzing electrolysers to something not dependent on those and less efficient is still a win if you get a lot more electrolysers for your money.
Source: https://www.weforum.org/agenda/2021/08/hydrogen-carbon-inten...
What wasn't obvious to me from the parent comment was why it is apparently completely impractical. No energy conversion has an efficiency of 100% so the answer couldn't just have been "because thermodynamics" but as other comments have since revealed, it is because _current_ hydrolyzers only operate on an efficiency scale of 60-80%.
What do you imagine is the raw efficiency of making hydrogen from. NG, vs the enthalpy of the input gas?
BTW, "electrolysers". Hydrolysis is a thing plants do.