So..... according to Merriam-Webster, sex is physical and gender is behavioral, cultural, or psychological?
Gender
2 a: sex <the feminine gender> b: the behavioral, cultural, or psychological traits typically associated with one sex
http😕/www.merriam-webster.com/dictionary/gender
Sex
1: either of the two major forms of individuals that occur in many species and that are distinguished respectively as female or male especially on the basis of their reproductive organs and structures
2: the sum of the structural, functional, and behavioral characteristics of organisms that are involved in reproduction marked by the union of gametes and that distinguish males and females
http😕/www.merriam-webster.com/dictionary/sex