In daily communications or under an online video, there may be a reply or a comment that shows great quick wit. It can be playful or not. For example, someone encounters an embarrassing situation, but he replies with some wise words, alleviating the atmosphere. Or a comment under a video coming up with a plot twist that makes people laugh.
What do you call this kind of reply or comment showing quit wit? Should I use different words for them, depending on their nature, i.e., whether they are meant to deal with an embarrassing situation or are playful just to amuse others?