Problem with hydrogen, just like batteries, is energy density. Energy density trumps efficiency any day. BMW did a demonstration vehicle to show what a hydrogen car of the future might be...they took a BMW 7 series, a pretty large vehicle, took out the back seats reducing such a huge vehicle to a two seater so they could fill the space with fuel tank. such is the difference in energy density between diesel/petrol and hydrogen to get similar mileage from a 'tank'. Also with hydrogen is because its the smallest molecule in the universe its impossible to seal so that make transporting it via pipes and tanks tricky without accepting a reasonably large amount of losses via leaks in the system.
Just to compare energy densities again...the uk has just spend many billions of pounds on the largest battery farm somewhere in the UK....it stores the same amount of energy as a typical fuel bowser you might see at an airport that contains enough Jet A1 fuel to fill up an A320...the type of aircraft you might fly on to your holidays...so flies 230 or so passengers upto 4 hours or 2000 miles or so. So all that energy, for all the inefficiencies of a combustion engine (actually about 45% efficient), fits into a non-articulated lorry. The many billions of pounds of battery farm that is roughly the same energy storage capacity takes up 5 acres of land....and such is the consumption of electricity would only provide power for a small town for a matter of minutes. OK the point of a battery farm is not to provide 100% of the power to a town, but to buffer the energy of the nearby solar farm that takes up another several acres of land, but you get my gist. Electricity might be efficient, but thanks to the inefficiencies of the renewable generation and the poor energy density of electricity sotreag, at a systems level it is not efficient...solar panels at best can only convert about 20% of the energy that falls on them to electricity so you need many many many acres of panels to get any meaninflull energy. And wind turbines are not much better.
By comparison synthetic sustainable fuel has an energy density much much closer to diesel and petrol, so by running your car off it, you might achieve about 20-30% lower mileage from a full tank for the same performance level. And you can run other vehicles from it like aircraft, tractors, mining equipment, boats, ferries and large vessels etc from it with minor modifications which are all basically impossible to electrify, but are so crucial to our modern way of life.