No one was assigned a gender at birth.
Everyone was male or female from the moment of conception.
Everyone was assigned a SEX at birth, I’m still sticking with the old rule that the term gender only applies to pronouns and there are THREE genders, not two. Had I referred to people as being male or female GENDER in grade school I would have flunked English class.