While prediction market odds pointed to a clear Bolsonaro victory, Lula emerged the winner in a tight race.