Why is jet fuel used as an aviation fuel in preference to dihydrogen gas? Does it make sense in terms of the energy yield?
Consider the mass of hydrogen, versus the mass of aviation fuel (which to a first approx. is kerosene).
On a per gram basis, dihydrogen delivers much more energy. But how do you store the hydrogen on board? In the laboratory, hydrogen gas bottles are heavy steel cylinders (approx. 100 kg) that you can just lift. There is also the safety concern of using compressed gas in an aeroplane (as of course there is the safety concern of using compressed gas bottles in the laboratory).
The gas supply would have to be regulated (reduced to a sensible pressure), and supplied to the combustion engine on a gas tight loop - all large (and heavy) engineering requirements. On the other hand carburettor technology for the ICE with liquid fuels is a fairly mature field.