win by a nose

Etymology
From horse racing, where the winning horse is slightly ahead, and the length of the nose separates it from the runner-up.

Verb

 * 1)  To win by a small margin; to have a narrow victory.