There are some good Catholic medical ethics texts that deal specifically with the great variance in human genatalia. In order to marry two people, a priest has to be reasonably sure that they can consumate their marriage.
Modern medical science has given humanity (and the Church) many wonderful advantages here.
Surgical techniques can restore function to sex organs which, in an earlier age, would have rendered a person unable to consummate a marriage and thus unable to licitly be married by the Church.
However, care must be exercised, because as has been observed in recent decades, overzealous surgeons working with, for instance, hermaphroditic patients, can incorrectly “assign” them a gender, leading to psycological problems later in life.
Being simply “uninterested” in sex is not a sin, and the celibate vocation is open to any person, not just religious. However, medicine may be able to treat these conditions if they are the result of hormonal abnormalities. Treating a legitimate mendical condition to restore natural function to the body is an objectively good thing.
Medical science moves very quickly, and it’s always necessary to use caution and good judgement when dealing with new medical technologies whose full moral ramifications are not understood.
Interesting topic. Would be nice if it could be narrowed down a bit.