Renting or owning
The comparison people think they are making is between rent and a mortgage payment. The comparison that matters is between two whole packages of cost, risk, obligation and freedom.
The common framing — that rent is money thrown away while a mortgage payment builds an asset — is not wrong so much as imprecise. Only part of a mortgage payment builds anything. The interest portion is a payment for the use of money, exactly as rent is a payment for the use of a building, and in the early years of a loan it is much the larger part. The honest comparison is therefore between rent and the genuinely unrecoverable costs of owning: interest, maintenance, insurance, and the amortised cost of buying and eventually selling.
Set out that way, the two are often closer than people expect, and which comes out ahead depends on local rents, the cost of borrowing, and how long the household stays. Time horizon is the variable that dominates. The costs of moving in and out of ownership are large and are incurred at the two ends; the longer they are spread, the smaller they become per year. A short stay makes ownership expensive almost regardless of what house prices do.
Maintenance is the underrated line
A tenant's exposure to the building is essentially nil: if the boiler fails, someone else pays. An owner absorbs everything, and the costs arrive lumpy and unscheduled. Roof coverings, boilers, windows, rewiring, drainage and external decoration all have finite lives, and they do not respect a household's budgeting year.
The realistic approach is not to hope for the best but to treat maintenance as a standing annual cost — money set aside whether or not anything breaks — with an eye on the specific building. An older solid-walled house in a conservation area has both higher maintenance requirements and less freedom about how to meet them, since materials and details are constrained. A recent flat has fewer surprises of its own but a service charge that captures the equivalent costs and adds management to them.
Security, and what each tenure actually promises
The deepest difference is not financial. An owner who pays the mortgage can stay. A tenant, however good the relationship, occupies at the eventual discretion of somebody else, and may have to move at a time not of their choosing. For a household with children in a particular school, or with work rooted in a particular place, that difference outweighs a good deal of arithmetic.
The mirror image is that ownership is illiquid. A tenant who needs to move can, at the cost of notice. An owner who needs to move must find a buyer, at whatever speed the market currently allows, and in a slow market that can take many months. Mobility has genuine value to anyone whose work or circumstances may change, and it is the thing ownership most reliably takes away.
Control and the small freedoms
Owning brings the ability to alter, decorate, extend and keep animals without asking; renting rarely does. These are not trivial. A great deal of the satisfaction people report from ownership comes from this rather than from any financial return, and a great deal of the frustration of renting comes from its absence. It is reasonable to put weight on it when weighing the two.
The local shape of the question
In a commuter town the calculation has a particular twist. Both rents and prices in the streets near the station carry the same premium, because both are paying for the same quarter of an hour. Moving out from the station reduces both, so the choice between tenures is not much affected by location; what location affects is the size of the number, not which side of the comparison wins.
What does vary locally is the composition of what is available. Flats and smaller terraces dominate the rental market in most towns of this kind, while family houses with gardens are more often sold than let. A household whose requirements sit in a segment that is rarely let may find the choice made for them by availability rather than by economics.
Neither is a mistake
It is worth saying plainly that renting is not a failure to buy. It is a different arrangement, with a different distribution of risk, and for a household that expects to move within a few years, or whose income is uncertain, or that would rather not carry the repair liability, it is a perfectly rational one. Equally, ownership is not simply an investment with a bathroom attached. Most of what it delivers is security and control, and those are the terms in which it is best judged.