win by a nose

Meaning 1
at the finish, to win by the length of a nose
Sentence 1
The horse won by a nose.
Meaning 2
to finish just a little better than the next person or business
Sentence 2
We won by a nose on that bid. We were only five hundred dollars under the next lowest bidder.