You mean something like Brendan and May, right?
If so, name two switches s:$player.isMale? and s:$player.isFemale? (turning both into script switches), and have any events that should be the rival have two pages with each one having one of the switches you just named as its condition...