Used the women's restroom after waiting entirely too long for a men's room once in a retail store.
As I came out of the restroom there was a woman who seemed very upset that I had used the "wrong" restroom. I just told her I identified as a woman and she instantly changed her tune. 🤣
Tldr, it works.