The new definition being pushed via gender identity legislation turns everything around. Sex is no longer about reproductive function, but is an identity. This does not, however, mean that it is regarded as a free choice: according to certain physicians and trans activists, gender identity is an “essence” that exists separately from socialization processes and the body.
www.feministcurrent.com/2019/04/11/as-sweden-gears-up-to-adopt-new-gender-identity-legislation-important-questions-about-sex-need-answering/