Insurance, running costs and the cost of selling finish the picture. The tax due on a future sale often applies even to a non-resident owner, and the resident rate is not always the one that applies.
Tax residency forms an entirely separate matter. Having residency does not by itself make you liable for local income tax, though spending enough time in the country usually will.
Owning offers what renting cannot: protection from rent increases, the right to alter the property, and a tangible asset that may appreciate. In several jurisdictions, being an owner can also support a residence application.
Starting with a rental remains the reversible decision when the country is new to you. Neighbourhoods look very different in August and in February, and nearby construction reveals itself after a few weeks.
Insurance, utilities and eventual selling costs finish the picture. Tax on the sale may apply when a non-resident sells, and the resident rate is not always the one that applies.
Borrowing locally affects the decision considerably. Overseas purchasers often face larger deposit requirements and less favourable rates than local borrowers.
The realistic approach remains simple: choose the property first, and let the permit be the second reason. Such schemes get restructured from time to time, and a property chosen only for a permit proves a poor asset once the rules change.
The second stage is due diligence on the property itself. An independent lawyer should verify the title, existing charges, planning permissions and whether the seller has the right to sell.