get in the last word
To say the final words in an argument or discussion, especially one that decisively or conclusively ends it. Everyone started shouting, trying to get in the last word, and the whole meeting just descended into chaos. David is so smug, making a point to get in the last word in every debate.