lose out to (someone or something)
To be defeated or bested by someone or something. I didn't get the job, but it sounds like I lost out to someone who was much more qualified.
lose out to someone or something
to lose a competition to someone or something. Our team lost out to the other team. Bill lost out to Sally in the contest.