There is no single right answer. Buying usually pays off if you will stay for several years and have the deposit and financing sorted; renting wins when you need flexibility or your situation may change soon. The key is to run the numbers on your own case, not on averages.
How long you will stay
Buying comes with upfront costs you do not get back: taxes, notary and registry fees. Those costs are offset by years of use, so the longer you plan to stay, the more sense buying makes. If your plan is one or two years, or your job may move you, renting gives you a cheap and quick way out.
What you can pay each month without strain
Compare the mortgage payment plus community fees, property tax and maintenance with the rent of something equivalent in the same area. Lenders usually estimate that total debts should not exceed 30-35% of monthly net income. If buying forces you to live at the limit, renting gives you room to save and buy better later.
The deposit and the upfront costs
Lenders rarely finance the full price, so you need savings for the deposit and, separately, for the taxes and costs of the purchase. In our guide to the costs and taxes of buying in Extremadura you have the full breakdown, item by item.
In Extremadura the area decides
In the capitals and their areas of influence, renting can be scarce and competitive, and buying often works out cheaper. In many villages the opposite happens: buying is very affordable, but reselling can take time. That is why the decision should be made with data for your specific area, not averages. The linked catalogue lets you see what is advertised today in each locality and at what real prices.