Efficiency still matters significantly with hydrogen solar panels, because solar panels aren't free.
Suppose solar to wheel is 60% efficient in a battery electric vehicle, but 30% efficient in a hydrogen vehicle. You need half as many solar panels to power the battery electric vehicle, and spend at most half as much to charge it. That matters.