I'd say that the best answer is character foil, as the narrative first presents a similarity between the characters and then goes on to cite where they differ.
*A character foil is a character whose personality contrasts the main character and therefore highlights certain characteristics of that main character.