pip someone at the post

pip someone at the post

or

pip someone to the post

BRITISH
If you pip someone at the post or pip them to the post, you just beat them in a competition or race to achieve something. Note: The following expressions refer to the finishing post in a horse race. She applied for a job at the university, but she got pipped at the post by a man with more publications to his name. He was pipped at the post for BAFTA's best Actor award by Robert Downey Jr.
See also: pip, post

pip someone at (or to) the post

defeat someone at the last moment.
Pip was an informal late 19th-century term for ‘defeat’, but it is uncertain from which sense of the noun pip it derives. Post here is the winning post in a race.
See also: pip, post