Hydrogen is completely unsuitable for land based transportation because building the infrastructure and actually making the stuff is pretty hard to do at scale. The electricity grid, on the other hand, already exists. And once you’ve built the charger, you don’t need to send a truck to refill it on a regular basis.
Like I said the problem is the infrastructure. Building this out at scale would require a massive effort that nobody will want to pay for. And rightly so because electric trucks are already a thing and will get a lot more popular in the next few years.