How to Deal with Losing a Job Promotion to a Co-worker

Have you experienced losing a job promotion to a co-worker? The experience is probably painful for you. The event probably hurt your ego.