Don’t live in the US, but in Sweden almost all WCs are gender neutral.
But the scenario is a cis gender male, walking in to a bathroom where he doesn’t belong. And you ask what is stopping him, well in the world where someone is asking you what gender you are, to allow you to go the bathroom; I guess that will be stopping you.
It’s a made up scenario
Well, all developers give each other ptsd, never seen a clean code base in my career. They all turn to shit, because 90% developers don’t care, because it will be someone else’s problem later.
That said, yeah don’t do weird custom code, where you have to keep context in your head to understand the code.