but that's VERY simplistic way to look at it because you conveniently left our opportunity and sovereign risk, amongst other risks , not to say that's not a consideration
If 10 years ago you had invested in say Nvidia and Amazon shares with your capital and then paid rent to live in Thailand, you'd be far, far ahead now ie opportunity cost
Governments change and they decide to change the laws and you aren't allowed back in as they are not permanent resident ie sovereign risk eg some people who purchased property in the US and have legal status but can't get it renewed will be nervous, or even because they have an unpaid parking ticket 10 years ago. If you can' get your retirement visa renewed because they changed the base requirement to 8 Million Baht in the bank , then what ?
Purchasing property to live in is really about a lifestyle choice, somewhere to hang your hat and call home but if you're not a citizen, you are their as a guest who can be kicked out. If you're happy with that, go ahead. I'd never look at it as an investment though.
As to Australians, they are property weird, because to them purchasing property is mostly a no brainier if you can afford it, there's no real analysis or due diligence necessary (flood plains and coastal erosion aside) as its heavily subsidised by the government in terms of tax relief and supply is severely restricted by government, so prices just go up and even insurance is often subsidised by government eg northern Australia in uninsurable so government stepped in as the underwriter (similar to much of the US with the NFIP ). Aussies then assume the same everywhere ie a business plan is 1.Buy property 2. ???? 3. Profit !