"Failure is good. Pain is good. It teaches you something."
You hear it everywhere, and it is true for some people. It is missing something important.
Pain is an opportunity, not a lesson
Getting the pain does not mean you will learn. The pain is only an opportunity to learn.
Some people take it. Others come up with stories that point fingers at everyone else, at the situation, at the cards they were dealt. Life is not fair. That is how people deny the opportunity.
Maladaptation
When you lose, you do learn something. The question is whether you learn the right thing.
For people who consistently draw accurate lessons from their mistakes, it is easy to say that failure is good. They take action, they get painful feedback, and they get better each time.
Other people don't have the same process. They do things. They get feedback. It hurts. Then, because of the story they tell themselves, they learn the wrong lesson. Because they learned the wrong lesson, they adapt in the wrong way. That is maladaptation. Things get worse. More pain follows, they learn the wrong thing again, and they continue like this.
"Failure is good" is only true if you learn the right lesson.
So some people get better because of pain, and some people get worse.
The pain itself is not good and not bad. It depends on who is looking at it and what story they tell.
Why you should still try
Even though you are never guaranteed to learn from a mistake, the best thing to do is still to try things. To fail, to feel bad, and to have the opportunity.
Some failures you will rationalize. It wasn't my fault. We all do this sometimes.
But if you fail enough, once in a while you get the moment. I keep making the same mistake, and I have been pointing fingers at everything and everyone else. Let me try something different. Let me look honestly at myself. How have I been contributing to this? What are my patterns?
When you open that door, a new world opens. Oh. Yes. I did that. That's true. That's fair.
That is when you learn.