If your answer for the question is YES then LEAVE!!!! No matter what they say about “how critical a resource you are”, just leave. The corporations are big enough to forget you the minute you leave their gates. They all lie. They don’t really care.
If your answer for the question is NO then its time to realize the fact, “Just because you got a puffed up ego doesn’t mean you deserve something better.” You deserve to be here for your past failures and you will be here unless you do something about it. So stop whining and better use the time to be capable enough to something better that you can also enjoy. I see people realize the hard fact and then work to change it and the satisfaction on their face while leaving for other places is too good.
Trust me!! It’s always better to have the choice of leaving than the realization of the fact that you are doomed to be somewhere you believe you should not belong.