What the French call l'esprit de l'escalier, that is coming up with the clever last word too late, when one is already on the staircase after having left the room.