Plan to throw one away
Of course the opposite problem also exists.  You plan to throw away that quick, ugly hack you threw together for a demo as soon as the demo is done, and somehow it sticks around in production for years to come.