Mars transportation prototype is what I've always assumed the hyperloop idea really is. Prove the tech at scale on earth first while giving people a new high-speed rail system, then deploy ver 2 in the Martian environment.
Only if everyone is expected to be wearing space suits.
I wasn't thinking the engineering of the tube, more the vehicles operating within. Assuming that there's a desire to have plain-clothed passengers.
On mars or the moon you might have separated habitats connected by rail, the cars themselves could utilize the mature tech from that old hyperloop thing we've been relying on for decades and millions of passengers use every day, etc..