Being rational about this (i.e., buying a dirty or otherwise manageably flawed house) is a great way to save or make money in markets where the majority of the cost is the building.