compare with, draw analogy with
儗 centers on drawing a parallel between two things: comparing them or likening one to another through analogy.
儗 combines 亻 (person) with 疑, which likely contributes both sound and the idea of comparison or imitation. The exact historical development is uncertain.
A person 亻 beside 疑 (doubt) suggests someone weighing two sides, comparing them to find an analogy.
For ギ, imagine a person comparing two gears (ギア) side by side: gear -> ギ, and the person draws an analogy between them.