The king’s wise men are jealous of Daniel and try to get him in trouble. They end up using his loyalty to God’s law against him.
The Pharisees are jealous of Jesus and try to get him in trouble by trapping him in words. Taxes to Caesar right or wrong?
Do we ever in the Bible see the righteous devising a way to trap a false teacher in his words in order to get him in trouble?
Mark 11:30?
That works! Was that Jesus getting fed up?
I think they asked a foolish question and Jesus replied according to their previous folly. They didn’t believe John’s authority despite being afraid of the people’s response to discovering their unbelief, so why would they believe Jesus if he appealed to the same authority?
Jesus knew the chief priests and the scribes feared the people and so would not deny John as a true prophet or admit disbelief/disobedience of a prophet. Instead of asking Jesus a question to judge him, Jesus agreed to answer if he could but first ask a related question. But the question made them secretly judge themselves and publicly accept the appearance of gross ignorance of discerning a contemporary prophet in front of the people they feared. And if they didn’t answer, they would not, as the proverb goes, appear wise. All four options were bad for them.
What about 1 Kings 22:1-23 (especially vs. 19-23)? Doesn’t exactly answer your question but close!