The process in developing sex- or gender-specific tissue, organ, or function after sex determination processes have set the sex of the gonads. Major areas of sex differentiation occur in the reproductive tract (genitalia) and the brain.