Learning through failure is an entrepreneurial rite of passage, but don’t underestimate the value of avoiding dumb mistakes you could have anticipated.