Op it really depends on your age, if you are late 30s/40 then prioritising a child is essential.
If you are twentysomething and have time, then undoubtedly buy a home.
Rents always go up...mortgage payments don't and can be fixed.
You are at the mercy of being given notice and having to move incurring costs each time.
if you buy now, in 5 years you will have the same mortgage outgoing( or lower once possible equity is built up) and security of not having to move.
Option to rent out and keep home if jobs force move.
Home paid for by retirement so security when you are old.
If however you rent now, in 5 years it is likely your rent will have gone up, possibly you will have had to move a few times.There will be no chance of equity, no security.Retiring will be tougher.
Lastly it is MUCH easier and do extra evening jobs/weekend jobs to add income younger rather than older.
Your age is the deciding factor.