Everything has a warranty of 10 years.
If you can afford it, buying a home wins imho.
Buy a home you can afford.