You would need a tank 4 times the size of a gasoline tank for liquid hydrogen, not to mention the high pressure tank that is needed to store the liquid hydrogen .
Do those comparisons take into account their respective engine technologies and how much useful work they are able to extract from each fuel in practice?