Rewrite basically tries to find a rule that is matching against the outbound URL. The first Join that matches wins. It is AFAIK not possible to implement something like “the best match” wins. And I doubt that this be easy and/or useful.
Lincolns idea was to use an additional query parameter that you would have to add to the outcome to control which Join wins. See these rules as an example: