Getting rejected for a job you really wanted is one of the worst parts of job searching. But if you handle the rejection well, you can get something useful out of the disappointment.
Don’t get angry
There’s no point in getting angry or taking a job rejection personally.
You might think that you were perfect for the job and resent the employer for not seeing it, or even feel angry that you spent your time interviewing.
But rejection comes with the territory when you’re hunting for a job, and in a market like this one, even highly qualified candidates get rejected because there’s often someone who is simply a better match for the position.