Buying a home—especially if it’s your first—can be a lot like losing weight in the sense that people end up doing, well, some pretty dumb stuff in the process.