The premise of this being a random encounter would not fit with Ra's Al Ghul's profile. He doesn't get caught alone. So for Moon Knight to defeat Ra's, he would need to defeat his League of Assassin's and Ubu. It's a rather up hill battle in which Ra's would be able to study Moon Knight as he fought his way to him. I just don't see Moon Knight winning this encounter at all.