A fierce election campaign ended in the defeat of another Bolsonaro.