My understanding, limited as it is, is that rabbis have an obligation to marry.
I’m not aware of any dogma held by Traditional Christians (excluding anything that might be unique to Roman Catholics) that requires Jesus have never married. But since there is zero evidence that he did why even go there?