If someone is born with a vagina and goes through estrogen based puberty, should she be sent to the “male” bathroom for having a Y chromosome? Because that’s what “Y chromosome = male” laws do to women born with androgen insensitivity syndrome.
“Y chromosome = male” wouldn’t even include all men who were born with a functioning penis and testicles who can father children, because the SRY gene is what determines whether a penis and scrotum develop. It is typically on the Y chromosome, but it doesn’t have to be.
There is not a way to assign bathrooms by sex without having some people who genetically must break the rules for one bathroom or the other. Not even touching on how the process is invasive for everyone, not just trans people.