match wits
Definition of match wits in the Idioms Dictionary by The Free Dictionary