L'esprit d'escalier or "stairway wit"
The moment after an argument when you think of a good comeback, but it's way too late.