Good AI design should never involve randomness, and should always take into account the opposition stats and comps. With some AI actions it is dependent on the parameter passed during a condition check. In some the parameter is a stat, in this case it’s a character. This is actually how a good static AI is designed if it is supposed to be challenging.
Revan always targeting Traya if available is actually legitimately better AI design than random targeting. This is how a human would play that team intelligently and that should be the goal for game developer AI.