If you assume you start with natural gas, hydrogen cars can be more efficient than BEVs. A natural gas power plant is at best around 55% efficient, whereas steam reformation of natural gas into hydrogen is around 80% efficient. With a 90% efficient drivetrain in a BEV and 85% efficient charging compared to a 65% efficient drivetrain in a hydrogen car, you can arrive at an efficiency of around 44% for a BEV and an efficiency of around 52% for a hydrogen car.
The above way is really the most favourable way to view hydrogen cars, but of course, if you assume you start with natural gas, "zero emissions" is out the window. BEVs can run on any source of electricity more efficiently than a hydrogen car.