You never know what’s around the corner. Sometimes life puts challenges in your way that seem too big to overcome. You might not get job you’ve been waiting for. You might have been more qualified, better prepared, etc. Still they went with a other candidate and you are left confused and feeling defeated.
Don’t give up! Things have a funny way of working out. You might get another position that you wouldn’t have been looking for otherwise. You might be open to relocating or chasing another opportunity. Its amazing how you can look back years from now and realize that this set back was the best thing that ever happened to you.