Hand it to the United Nations: It manages to be both sanctimonious and squalid.

It turns out the UN Office of the High Commissioner on Human Rights has cautioned President Trump that repeal of ObamaCare would put the United States “at odds with its international obligations.”

The five-page “urgent appeal” from the OHCHR office in Geneva warned that taking away health coverage would violate “the right to social security of the people in the United States.”

Meanwhile, the world body just showed its own contempt for human rights by electing Saudi Arabia to serve on the UN Commission on the Status of Women, whose mission is to promote “gender equality and the empowerment of women” across the globe.

Last year’s Global Gender Gap report from the World Economic Forum ranked Saudi Arabia 141 out of 144 countries on gender equality. Saudi women can’t drive and must let male guardians make most of their decisions and accompany them in public.

“Electing Saudi Arabia to protect women’s rights is like making an arsonist into the town fire chief,” said Hillel Neuer, the executive direction of UN Watch. “It’s absurd.”

And so is the United Nations itself.