Decoding sex and gender effects on health: evidence from a nationwide cohort | Synapse