Things are bit more nuanced in Latin American, depending whether left-wing or right wing parties are in power. You can be sure that Bolsonaro would have voted for Israel through and through. It just so happens that many Latin American countries that see alternation in power are now run by left-wing governments, which have more pro-Palestinian view, but not quite Hamas loving.
If you look at who voted to condemn Hamas at the UNGA, there are quite a few Latin American countries still:
- Argentina [despite left-wing gov't]
- Brazil [despite left-wing gov't]
- Chile [despite left-wing gov't]
- Costa Rica
- Dominican Republic
- Ecuador
- Guatemala
- Haiti
- Honduras
- Mexico [despite left-wing gov't]
- Panama
- Paraguay
- Peru
- Uruguay
One might think that list was swelled by the nature (and time proximity) of the 10/7 attacks, but that doesn't seem to be the case. There was a December 2018 attempt to condemn Hamas at the UNGA. Earlier in that year Hamas conducted various rounds of rocket attacks & mortar attacks on Israel (which apparently had peaked in May-July; although that was then dwarfed by the clashes in November), but the result was nearly the same as in the 2023 vote.
The UN presser quotes one of these Latin American counties saying back then
The representative of Chile called on Israel to lift the restrictions imposed on the people of Gaza. “There is no reason to justify acts of terrorism,” he said. Reiterating full support for a two‑State solution and declaring that both Palestine and Israel have the right to coexist peacefully, he said Chile is home to the largest Palestinian community outside of the Middle East.
The current president of Chile--Boric-- was elected with support of a rather broad leftist coalition, while his predecessor--Piñera--was on the right-wing (liberal-conservative).
OTOH Ecuador abstained back in 2018 (but voted for condemning Hamas in 2023). In 2018 they said:
The representative of Ecuador said her delegation abstained from the vote, citing the responsibility to pursue a fair solution to the crisis. She voiced support for a two‑State solution and reiterated her Government’s full support for relevant United Nations resolutions. “The situation in the Middle East and the Palestinian question require an urgent peaceful solution,” she said, condemning all forms of terrorism.
The current president of Ecuador--Lasso--is rather on the right-wing/neoliberal side of politics. His predecessor--Moreno--was part of the "pink tide" left-wing side.
Somewhat oddly, Guyana abstained back in 2018, but voted against condemning Hamas in 2023. I could not easily find statements from them, but nowadays, English-speaking Guyana has a (seemingly populist) left-wing government with Irfaan Ali as president. OTOH the previous president, Granger [more associated with the defense establishment], was also supported by a left-wing party, but also by a more liberal one. (Also, the left-wing parties in Guyana appear split by ethnicity.)
Jamaica [which had the same PM back then] voted for condemning Hamas in 2018, but abstained in 2023. Since [English-speaking] Jamaica is part of the Commonwealth, its position was a bit more discussed in press I can easily read like, the The Guardian:
The prime minister, Andrew Holness, after Hamas’s murderous madness, came out to show solidarity with Israel and tweeted that Jamaica stood with Israel. He called for a cessation of hostilities and a return to peace within internationally agreed guidelines, and urged them to pursue diplomatic solutions.
Now that Israel has shown its overreaching response against the Palestinians, he has said no more and, to add insult to injury, Jamaica was still deliberating on Friday while the UN general assembly (UNGA) vote was going on. What was there to deliberate? [...]
Holness' party, the JLP is considered on the right-wing/conservative side, despite having 'Labour' in its name.
The fact that they've appeared to change tack after Israel's massive response is perhaps illustrative of the process that ItalianPhilosopher's answer suggests, although TBH there aren't a lot of countries where this change was super overt.
In 2023, at the UN, Jamaica abstained on condemning Hamas (the Canadian amendment) and then made a 'disappearing act' in the vote on the unamend resolution that more generically called for all sides to cease violence (and an immediate ceasefire). Later they said:
Regrettably, consultations were underway w/ Kingston which did not conclude in time for the close of vote. [Jamaica] welcomes the action taken by the UNGA, and hopes that it contributes to progress.
As for Africa... al-Jazeera notes that only a handful of these countries openly supported Israel:
But Kenya, Zambia, Ghana and the Democratic Republic of the Congo are among other African nations that have aligned with Israel’s position.
Of these, only Kenya and Ghana voted on the Canadian ammendment though.
As for why... South Africa is one of strongest supporters of Palestine, and they often throw their own legacy in argument, e.g.
In July 2022, South African Foreign Minister Naledi Pandor called on the United Nations to declare Israel an “apartheid state”.
This despite the fact that (probably owing to ties established earlier on)
South Africa, one of Israel’s fiercest critics on the continent, is also its biggest trading partner in Africa – by far.
Likewise:
President Ramaphosa has pledged the ANC's solidarity with the Palestinians, saying their history had echoes of apartheid - and South Africa's struggle against white-minority rule.
Although he did condemn the Hamas assault, a week later he led 60 party leaders as they waved Palestinian flags, while wearing the traditional chequered black and white Palestinian scarf, the keffiyeh.
"They are people who have been under occupation for almost 75 years," he said of the Palestinians. "They have been waiting and waging a war against a government that has been dubbed an apartheid state. [...]
Large pro-Palestinian protest marches have been held around South Africa since the conflict began. Smaller pro-Israel marches and rallies have been held in Johannesburg and Cape Town.
A lot of Africa is [also] close to China in some regards because of anti-colonialism and the non-aligned movement etc. And China's influence is also non-negligible in Africa more generally because e.g.:
China has far surpassed the U.S. as an economic player in Africa.
China is Africa’s largest two-way trading partner, hitting $254 billion in 2021, exceeding by a factor of four U.S.-Africa trade. China is the largest provider of foreign direct investment, supporting hundreds of thousands of African jobs. This is roughly double the level of U.S. foreign direct investment. While Chinese lending to African countries has dipped of late, China remains by far the largest lender to African countries.
It's not mentioned by Al-Jazeera, but Nigeria (the most populous country in Africa) and South Sudan also voted for condemning Hamas.
And so did India vote to condemn Hamas at the UN in both 2018 and 2023. It's been pointed out in a comment however that India doesn't list Hamas as a terrorist organization in its domestic legislation/regulations.
(Even some European governments [still] don't internally list Hamas as terrorists. E.g. Switzerland still doesn't (AFAICT) although their executive is pushing for that, in view of Oct 7. The Swiss do have such a list internally, but it only lists al-Qaeda & IS related organizations. And that's because the internal Swiss designations insofar has been tied to the UN-decided status of those organizations, where Hamas definitely has more fans [or at least protectors] than those two. The Swiss MFA however has "condemned Hamas' terrorist acts" and they voted similarly at the UN, both in 2018 and 2023.)
According to one academic observer, India generally avoids mentioning Hamas at all, either to give them some kind of implicit recognition or to explicitly condemn them.
“New Delhi neither recognizes Hamas nor describes it as a terrorist group but pursues a delicate balance between its support for the Palestinian cause and opposition to terrorism,” P R Kumaraswamy, who teaches contemporary Middle East politics at Jawaharlal Nehru University, told DH [...]
Unlike Switzerland however, and despite India's votes at the UN in condemining Hamas
the [Indian] MEA press release on Saturday [Nov 4] still refrained from blaming Hamas for the October 7 terrorist attacks on Israel.
As also pointed in that last article, India also abstained on the (unamended) UN resolution that called for an immediate ceasefire "as it had not included any explicit condemnation of the terrorist attacks on Israel on October 7". (That resolution passed the UNGA as such though.)
So there is that.
Some have commented below that many (if not all) the countries I listed above also condemn Israel for continued occupation of Palestinian territories, at least in the West Bank. That's true. And Oct 7 didn't really change any stances in that regard, as far as I know. My point with this answer is that such countries essentially take a position that "two wrongs don't make a right": they can condemn Israel for occupation, and can also condemn Hamas for their methods, at least.