That said, if you aren't an owner of the company then I think it's unhealthy to be emotionally invested.
In my last job, I had received a competing offer and informed my boss that I would rather not leave but that this other offer was too financially good for me to ignore. My boss responded by beating the other offer and I stayed there for about five more years.
I later admitted to him that I felt guilt about leveraging an offer in this way. He said something that really stuck with me: "You've got to put yourself first".
In retrospect, the thing that actually stuck with me is that I'd gleamed into the mind of upper management. That is, they are putting themselves first, and so should you.