In sharp contrast, sodomy is completely forbidden - in both the OT and the NT, not to mention all of Holy Tradition, the Natural Law, and the teachings of the Church for the last 2,000 years. St. Paul calls it an "abomination." Moses mandated the death penalty in all cases for sodomy (two guys).
Sodomy is a capital felony, polygamy is more like a minor misdemeanor in comparison.
Levirate marriage was not polygamous. Nor was the case of captive women becoming wives of Hebrews (Deuteronomy 21:11-13 says wife instead of concubine and mentions no polygamy). Don’t fall for the Muslim misinterpretations.
Look at the case of Tamar, who married Er, then Onan, and then was supposed to marry Shelah (who Judah in his faithlessness kept from marrying Tamar, not understanding why Er and Onan died and blaming it on Tamar erroneously). None of those sons of Judah had other wives. And Judah’s liaison with Tamar was never painted in a good light.