Why Failure Outperforms Success as a Teacher