ICE engines running on biofuel are about as efficient as they are going to get, whereas hydrogen power is a fairly immature technology and has a lot of potential efficiency gains as the technology matures.
I think biofuel from waste products will still be useful for certain applications, for instance in medium and long haul aviation, where the energy density of hydrogen would pose a significant challenge. But biofuels are just not scalable to the levels required for global demand vs land requirements. Using biofuels just for aviation would require cultivating land the size of Texas, California, and Florida. [0][1][2] It is just not feasible to scale as a primary fuel in a fossil fueless future. Hydrogen can scale with electrical capacity, which can come from nuclear, solar, wind, geothermal, hydro, etc.
[0] back of the napkin math/conversions based on 2 and 3
[1] https://its.ucdavis.edu/blog-post/making-policy-in-the-absen...
[2] https://www.theglobaleconomy.com/USA/jet_fuel_consumption/