definitely Thailand. Vietnam is nice on the coastal cities.
Apart from applying for an education visa and learning Thai (unsure that actually grants work rights?) or an actual work visa with associated FT job, you'd be on 1 month tourist visas with repeated border crossings and in legal grey zone at the whim of regulators.
Vietnam you can apply for extensions up to 1 year and everyone leaves you alone if employed remotely or running your own business abroad. Central Vietnam is a beautiful place.
I've been living there 6 months out of the year the past 3 years and plan to get the elite visa once the pandemic settles down. Vietnam is another favorite spot of mine but Thailand has always been my #1.