For those who are science-fiction nerds, that reminded me of a line in Robert A. Heinlein's Friday. Regardless of what you think of that book (and it was problematic in some respects), I've never forgotten his use of unisex bathrooms.
"Pointers and setters use the same plug."
I've used men's bathrooms on a few desperate occasions. I always figured a toilet is a toilet is a toilet. But I'm not transgender, I have several different kinds of privilege, and I don't have to worry about getting beaten up if I use the "wrong" bathroom.
That's why this legislation is needed.