If a white person said Africans captured into slavery by Europeans deserved their fate because they were “stupid,” she or he would be treated like the plague. If anyone praised Adolph Hitler as having been “smart” but merely going “a bit too far,” that person would also invite universal condemnation. So why is it that instead of being isolated, Uganda’s dictator of 28 years, Gen. Yoweri K. Museveni (who in fact made those comments), is coming to Washington, D.C., to join dozens of other African leaders for the U.S.-Africa Leaders Summit next week?

The Ugandan ruler thrives on regional militarism, domestic political repression, torture, imprisonment and killing of political opponents and selective demonization whenever he believes it yields political capital.

Most recently, Museveni was in the news when he signed Uganda’s harsh anti-gay law Feb. 24. It calls for life imprisonment for gay Ugandans and up to seven years imprisonment for anyone, including employers and landlords, who knows of a gay person and doesn’t expose the person to the police. Museveni is promoting a witch hunt against gays, hoping it will translate into votes in Uganda’s 2016 presidential elections.

When a reporter wanted clarification about whether journalists working on a story were also obligated to “out” gay people, Museveni said not exposing the person would be like witnessing a murder and not disclosing it.

While the bill was still being debated in Uganda’s Parliament, President Barack Obama called it “odious.” At the time, it called for death by hanging for gays.

Yes, the U.S.-Africa Summit is a great idea. It holds many benefits for the continent. By bringing African presidents to Washington for a joint meeting, the continent gets the kind of media coverage it deserves to highlight development and investment opportunities. Global media would acknowledge that Africa’s story isn’t just about conflicts and diseases.

After all, according to the Economist magazine, six of the world’s 10 fastest growing economies in the past decade have been in Africa. Moreover, the U.S. is eager to counter some of China’s aggressive commercial penetration in Africa. The Asian giant has signed several multibillion-dollar trade and investment deals. Many of the deals are geared toward quenching China’s insatiable need for energy and raw materials to fuel rapid growth.

It’s also true that the U.S. values its relations with Museveni’s regime because Ugandan soldiers help to stabilize war-torn Somalia. Washington fears Somalia would fall to al-Shabab, reported to be al-Qaeda’s ally. Yet a post-Museveni regime, democratically elected in Uganda, would be able to continue such a relationship. There’s no justification for supporting his dictatorship.

After all, it was Obama himself who, while addressing Ghana’s Parliament in 2009, though actually speaking to the entire continent, said, “Africa doesn’t need strong men; it needs strong institutions.”

Museveni epitomizes destructive autocracy in Africa. Such rulers are impediments to building enduring institutions of governance throughout the continent. What’s more, the U.S. has consistently accused China of ignoring human rights violations in its business dealings with African countries. The U.S. would repeat the same offense by permitting a ruler such as Museveni to the Aug. 4-6 summit.

There’s no single African ruler whose militarism has led to the deaths of more Africans than Museveni’s. Major media outlets, such as The New York Times, CNN and the BBC, eager to preserve Uganda’s relations with the West, often ignore or gloss over his crimes. Ironically, Robert Mugabe’s alleged transgressions pale in comparison to Museveni’s. Consider Museveni’s resume to date.

Uganda’s army (and Rwanda’s as well) has invaded neighboring Democratic Republic of Congo numerous times, primarily to plunder billions of dollars worth of the country’s immense mineral and natural resource wealth. In the process, estimates of Congolese deaths range from 5 million to 7 million due to the wars, massacres, displacements and attendant diseases. Eastern Congo is referred to as the “rape capital” of the world, with attacks on women, children and men.

In 2005, the International Court of Justice found Uganda liable for these war crimes in Congo and awarded $6 billion to $10 billion in reparations. Not a dime has been paid.

The International Criminal Court also started its own inquiry. Possibly fearing that he would be criminally indicted, Museveni contacted then U.N. Secretary-General Kofi Annan and asked him to block the investigation, the Wall Street Journal reported in its June 8, 2006, edition. Using the same set of evidence, the International Criminal Court was likely to have come to a similar conclusion as the International Court of Justice. This means Museveni is essentially an unindicted war criminal.

More recently, Museveni (along with Rwanda’s Paul Kagame) was found by a U.N. Group of Experts report to have trained, armed, financed and commanded a proxy army called M23, which also committed war crimes in Congo, to continue creating conditions that permit theft of resources.

It took a personal phone call from Obama, who warned Kagame in December 2012, for Rwanda and Uganda to halt support of M23.

A United Nations special brigade commanded by Tanzanians and South Africans finally defeated M23. Some fighters fled to Rwanda and Uganda, while M23’s military commander, Sultan Makenga, is harbored by Museveni, who has refused to extradite him to Congo.

Finally, in February, Museveni was back in the news with the anti-LGBT law.

Even though Obama had warned him that the harsh anti-gay law would jeopardize relations with the U.S., Museveni signed the bill into law, then, in a rambling press conference, delivered numerous attacks and insults on members of the LGBT community. He also publicly demonstrated his prejudice and ignorance.

Museveni claimed Ugandan “scientists” had convinced him that while there were genetic factors, homosexuality was primarily “triggered” by how people were “nurtured.”

“Can somebody be homosexual purely by nature without nurture? The answer is ‘no,’” Museveni said during the videotaped press conference. “No study has shown that you can be homosexual purely by nature. Since nurture is the main cause of homosexuality then society can do something about it to discourage the trends. That is why I have agreed to sign the bill.

“Even now I have not fully understood it,” Museveni said of homosexuality. “That you can fail to be attracted to all these beautiful women here and elsewhere, and you are attracted to a man.”

When a reporter asked whether he would be willing to meet with members of the LGBT community to hear their views, Museveni’s response was chilling.

“We shall discuss it among ourselves and see the best. Because somebody must meet them to rehabilitate them and to study them,” he said, laughing. “Yes, and also to study them,” he added. “Scientists should meet them, study them, take their blood, look at their genetics. So definitely we need to meet them.”

Not surprisingly, the hostile political environment promoted by Museveni has had adverse consequences. The Guardian has reported that between December 2013, when the law was enacted by Parliament, and May 2014, attacks against the LGBT community numbered 162, compared to only eight in almost all of 2013. This represents a 20-fold increase, although the Guardian’s headline says tenfold. The Guardian reported suicides, attempted lynchings, homes burned down, evictions, dismissals from jobs and other harassment.

Museveni’s demonization of the gay community is consistent with past bigoted comments he has made throughout his almost three decades of autocratic rule, including those trivializing the painful legacy of slavery and the Nazi era in Germany.

It was in an interview published in the Atlantic Monthly magazine’s September 1994 edition that he made his ugly comments about enslaved Africans, saying: “I have never blamed the whites for colonizing Africa: I have never blamed these whites for taking slaves. If you are stupid, you should be taken a slave.”

Perhaps Museveni concluded the comments would endear him to certain power circles in the U.S. establishment. He certainly has not suffered any ill-effects from the statement up to date.

A few years after his perverted remarks about slavery, Museveni, who also has a grand vision of one day ruling the entire East and Central African region, as he demonstrates through his militarism, was quoted in a Ugandan weekly newspaper, the Shariat, as saying: “As Hitler did to bring Germany together, we should also do it here. Hitler was a smart guy, but I think he went a bit too far by wanting to conquer the world.”

It would be the greatest travesty if such a bigoted ruler (who casually insults African-Americans, Africans, other Diaspora Africans, Jews and members of the LGBT community) attends the U.S.-Africa Leaders Summit. There are already new U.S. sanctions that deny visas to Ugandans involved in corruption and the anti-LGBT law that can be used to bar Museveni from Washington.

There was no response to attempts to get comments last Friday about Museveni’s remarks about slavery and Hitler from the presidents of the NAACP and the National Urban League for this column.

The U.S.-Africa Summit is a great gathering that deserves to become an annual event. It will be even much better if it excludes odious rulers, such as Uganda’s Museveni.

Readers of this commentary are encouraged to sign a petition calling on Obama to disinvite Museveni at http://chn.ge/1rM2kdC.