travel. you can buy a house when you're done that. you likely can't afford to travel if you buy a house first. traveling is a priceless experience and adds so much to the quality of life.
Home base. Buy house. Make more money. Travel and have a place to comeback to. Travellinggets tiring and unless you can earn while travelling, you're just spending your savings with nothing to show for it in some ways, sure you have experiences which are amazing and worthwhile, but once the money runs dry your left with nothing. If you can buy a house, do it
Speaking as someone who is single and has an amount of money that I'm proud of, buy a house. There's a feeling you get in your heart that only comes with owning your own fortress. My house is the only place where I feel like no one can touch me.
Luckily for me I work for an airline so I also get to travel for free, but if I have to choose one, get a house.
Or, if you're a young guy, I would at least consider traveling around and trying to bag a non-western wife, if that's important to you. Bit of a hot take, I know.
Buy a house, rent it out and travel a lot.
Best of both worlds.