The honest answer depends on how long you stay. Buying costs a lot at the front, and it takes years of growth and paid-down loan to win that back. Drag the sliders and the answer moves with them.
Every slider is an assumption you have chosen, not a forecast. The comparison assumes you would rent something much like the property you would buy, that the renter invests the deposit and the purchase costs rather than spending them, and that whoever has the lower monthly outgoing invests the difference. That last part is what makes it a fair comparison, and it is also the part most people do not actually do. Transfer duty is calculated on the Western Australian rates. This is general information, not financial advice.
What actually moves the answer in Perth
How long you stay. Nothing else comes close. The purchase costs are sunk on day one and every extra year spreads them thinner. Drag the years slider between five and fifteen and watch the verdict flip.
The strata levy. On an apartment or a villa this is the number that quietly decides it. A scheme with a lift, a pool and a gym can carry levies several thousand dollars a year above a plain walk-up of the same value, and that money never comes back to you the way a loan repayment partly does. Two properties at the same price are not the same purchase.
What you would otherwise do with the deposit. If it would sit in a transaction account rather than being invested, buying looks much stronger than the default six per cent return here suggests. Be honest about which one you are.
If it came out as buy
We can tell you what the levies really look like in a given scheme before you commit to it. If you are weighing up two buildings, that conversation is worth having early.