General Brazilian
vencer por um triz; vencer por pouco
Common in sports commentary and general usage
São Paulo
ganhar por uma margem muito pequena
Neutral, formal usage in news and business contexts
Portugal
vencer por um fio; ganhar por pouco
Common in sports reporting; 'por um fio' is particularly used in European Portuguese