Just because something didn’t work out, it doesn’t mean it’s a failure. If you hold begrudgingly on the hurt and focus too much on being pissed off at your own mis-judgement, you’ll never experience real growth within yourself.
Self descipline doesn’t hold much value if it’s for the purpose of continued ignorance — we’re supposed to learn, not ignore because something went wrong.