Basically any core elements of a home. Finishes can be redone, but things like a good water heater or reliable HVAC system are niceties you'll always thank yourself for
Shopping houses right now. I'm really focusing on the HVAC, roof, and plumbing. Oh and water. I saw one house where it didn't have gutters on a short eave and the door below was mostly rotted out in the bottom 2 feet from water slashing on to it. It boggles the mind that no one had thought to put a gutter there. Literally a 8 foot section of gutter would save that door and frame.
Good work. Those are the things that will cost you tens of thousands. New floors? Bah, nothing compared to having to replumb or rewire. Water damage too is terrifying, we had our water heater burst and it took weeks to clean up and repair