Which part?
This is the classic rent vs buy math, and it's always been pretty close (see this video). Renting is better if you'll end up paying people to do the maintenance for you, and buying is better if you'll DIY most of the repairs. The math is also very location and lifestyle dependent, where the closer to downtown you live or the more frequently you'll move, the better you'll be off renting; likewise, generally speaking, the further from downtown you live or the less likely you are to move, the better off you are buying.
I bought a place, because the math in my area and for my lifestyle worked out. Ben Felix (the guy in that video) decided to rent, because the math for his area and his lifestyle worked out. Both options work.