Hydrogen vs. Battery Electric Cars

I’ve been curious about the longevity of fuel cell vehicles. Blowing high pressure gases at a thin and very expensive foil of precious metal that gets extremely hot, doesn’t seem compatible with durability. Yes, it may be a catalyst that is not consumed itself by the chemical reaction, but there must be some erosion by the physicality of the conditions in the fuel cell. And I’ve never seen that aspect discussed, although that would seem to be an issue. At least to this viewer, who may be uninformed, but not for the lack of trying.
Several years ago a looked into one of these cars, that the maker was offering at what I thought a good deal, but the prospect at the time traveling in traffic twenty miles just to refuel deterred me.