If you are going to live in it till you pop off, and have the cash, perhaps buy, if you're not sure about the future or area, might be best to rent, but, renting is money down the drain.
Saying that, my chum has a flat in Jomtien, his main residence is up country near me, he is not going to be with us much longer, been trying to sell it for a couple of years, with no luck...🤕