How would the legal system decide this? No evidence beyond her saying it happened and him saying it didn't. it isn't a fault in the judicial system so much as a fault in reality. There cannot be a system that one person't word is enough to convict someone. Even who is more believable doesn't work. That's acting, not justice.
There is no solution to this.