It depends on the intention of the toilet being there. It’s UK law for public places to provide an accessible toilet. It’s not illegal to use an accessible toilet if you are able bodied.Defeats the object of there being a disabled toilet.
Only an absolute prick would use it, rather than just wait for a normal toilet to become available imo.
I’ve been told to use disabled toilets on several occasions on customer sites.