idiom
to come out on top
Meaning
to succeed in a difficult situation or competition
Example
After a fierce competition, they **came out on top** and won the contract.