When several candidate matches are equally good we take the one whose
parents match. If no parent matches, we take a random match.