I was wondering if there was any word or terminology for any such literary device that uses this effect.


It sounds like the literary device term you're looking for is creating a foil where a foil is another character in a story who contrasts with the main character, usually to highlight one of their attributes.

Juxtaposition is a literary device wherein the author places a person (etc) parallel to another in order to highlight the contrast between the two and compare them.

Non-literary comparisons would be setting up a false equivalency, rigging the deck, or stacking the deck: to manipulate events, information, etc., in order to achieve an advantage or desired result.

Not the answer you're looking for? Browse other questions tagged or ask your own question.