Brazilians vote on Oct. 4 in a close presidential race between left-wing President Luiz Inácio Lula da Silva, seeking a fourth nonconsecutive term, and right-wing Sen. Flávio Bolsonaro. The outcome could reshape Brazil’s domestic politics and relations with the United States and China.