Wiktionary
win by a nose
vb. (context idiomatic English) To win narrowly; to have a narrow victory.