L’esprit de escalier

The feeling you get after leaving a conversation, when you think of all the things you should have said.