The sexual ideation in such situations is termed ego-dystonic or ego-alien, meaning that the behavior and/or attitudes are seen by the individual as inconsistent with his or her fundamental beliefs and personality. Therefore, OCD can decrease libido.
In cases where an individual experiences distressing sexual thoughts or fantasies, they are referred to as ego-dystonic or ego-alien, suggesting that these thoughts or behaviors conflict with their fundamental values and personality. As a result, OCD can lead to a decrease in sex drive.