Actually Indonesia has a larger voter population than Brazil (the accepted answer). For the 2019 election
On 5 September 2018, the KPU announced there were 187 million registered voters – 185,732,093 in Indonesia and 2,049,791 voting abroad.
The Indonesian president is directly elected albeit in a two-round system (like Brazil), but candidates need the support of 20% of political parties (as represented in the Indonesian parliament = DPR) for their nomination.
In the aforementioned election, there were 154,257,601 valid votes cast in the presidential contest, substantially more than in Brazil (as an absolute number, the participation rate was pretty similar around 80%). Although the election was also fairly split 55.5% vs 44.5%. Jokowi won with 85,607,362 also a larger absolute number than for Brazil's election from the accepted answer.
These numbers also comfortably "beat" the 2018 election of Bolsonaro as well: 147,305,825 registered voters, 117,364,560 votes cast, 57,797,847 votes for Bolsonaro (2nd round).
For the sake of mentioning this too, Brazil is considered somewhat more democratic/free
than Indonesia in both in EIU's democracy index and Freedom House's.