The answere to this question is probably beyond the scope of this user group. To give a userful answer much more information would need to obtained.
How much house are you thinking of purchasing? How long do you plan to stay? What are your goals in retirement? Is your income fixed? What percentage of your income will go to renting vs. owning?
All of which are very personal questions which I would not recommend you share on a public forum like this one. My advice to you is to speak with a financial planner and get their opinion. Balance their opinion with that of a local real estate agent. Both are selling a specific product so keep in mind their bent when considering their answer. I hope that helps.