I am not sure what you mean by this. If you mean which is better, than that would be a queen, in most scenarios. I say in most scenarios because there could be, for example, a position where one of knights just forked the king and queen. However, in most cases, a queen is better.
king and queen vs king and two knights


It's drawn. Just keep the pieces close enough together that the King can always protect both Knights if needed.

In the king and queen vs king and two knights endgame, is it a draw? Are there any drawing techniques for the defender? If so, what are they?
Consider the position below. How would white get a draw?
Ask for the draw.

This should be moved to endgame study. But the queen usually wins if the knights are stuck defending each other. If the player with the knights can keep their king next to the knights and the 2 knights next to each other, should usually be a draw. Any specific position though you should check the tablebase to be sure. Nalimov Tablebases say this will be a draw with perfect play:

The general case is a draw but also remember that Chess.com is primarily Speed Chess and it's very difficult for either side to force a repetition. The reality is that you have to think about which side can think fastest. For that reason, I think most cases would result in a win for the Queen.

There is a small pattern to be aware of though:
If the king is what's forcing the 2 knights to stay together, and not the queen, then the queen can be used to force the enemy king to the edge or corner, eventually stalemating the king, forcing one of the knights to move which the king will then take the other.
In the king and queen vs king and two knights endgame, is it a draw? Are there any drawing techniques for the defender? If so, what are they?
Consider the position below. How would white get a draw?