If someone edges out someone else, they just manage to beat them or get in front of them in a game, race, or contest.
France edged out the British team by less than a second...
McGregor’s effort was enough to edge Johnson out of the top spot.
PHRASAL VERB: V P n (not pron), V n P of n, also V n P