There is a French saying, L'esprit de l'escalier (the wit of the staircase) that means to think of the perfect reply too late. Made me think of the Simpson’s episode where the perfect comeback hits Marge as she drives away from the gas station. I believe it was from the episode where she buys a Chanel suit and joins a country club called "Scenes from the Class Struggle in Springfield."