It's neither: Underengineering will lead to unmaintainable spaghetti code. Overengineering will also lead to unmaintainable code, but it's more like lasagna.
A few years later I found structural issues in a different part of the house.
But, because I spent more money on overengineering one part of the house, there's less money to fix real problems.