Not Selected for a Job

I applied for a new job because the person in charge sought me out saying that I would be awesome. Although I already have a job and wasn’t actively seeking another, I applied for this position and interviewed. I just learned that I was not the selected candidate. I wasn’t even sure that this position was something I was interested in, and I really didn’t feel 100% that I was the right fit, so why am I struggling with negative thoughts that I am a failure now because I wasn’t selected?
C: Interviewed for new job and was not selected
T: I am not good enough; I am a failure; I think more highly of myself than I should; Maybe it’s true that I am not that smart.
F: Failure; Embarrassment
A: I don’t know that I’ll ever put myself out there again.
R: I just stay put even though I am not really happy.