What do you mean, “all these other” societies? I never claimed that western colonialism was the only source of homophobia in the non-western world.
But western colonizers did work assiduously to codify rejection and prohibition of same-sex sexual behavior in the legal systems they created for their non-western colonies, as well as propagating an interpretation of Christianity that was firmly homophobic.
It would be more accurate to say that typical moral views from that era on the particular subjects of child betrothal and age of consent have no applicability to today. It would be false to claim that all aspects of medieval moral codes are equally distant from modern ones.
It would also be false to claim, even in accordance with modern views of sexual morality, that Muhammad was in any sense a “pedophile” as modern medicine defines the term. Recall that the historical evidence about his married life strongly suggests that most of it was spent in happy and sexually fulfilling relationships with wives older than himself. And there’s no confirmation that he ever actually had sex with his child-bride while she was pre-pubescent (which would have been the definition for “too young for sex” according to most marital codes of the time).
In short, the statement “Muhammad was a pedophile” is such a misleading distortion of the known historical evidence about his life that it basically amounts to a bigoted and ignorant slur. That’s not a good way to win any converts to your anti-religion stance who don’t already agree with you.
Sure, but it would also be a mistake to minimize the good that religion does. If you lie to kids by stressing modern secular negative depictions of historical religion while avoiding mention of religious figures and institutions promoting decent and compassionate behavior, kids are eventually going to figure out that you’ve got an axe to grind and stop trusting your claims.