If you can afford a house, you might do well to buy one, depending upon the house. It's helpful to build equity.
As long as you can afford it and can manage to pay your bills, just as you do for your apartment and utilities, you get the added benefit of building equity.
It's a lot to think through to make the best decision for yourself.
Take your time and get lots of input.

WC