No question that the duel is a violent tradition and the liberals of the 19th century were right to shame it into near non-existence. On the other hand, duels were a great way to minimize the carnage resulting from human conflict. They had social utility: only those who disagree risk life and limb, while everyone else is safe. Look at the costs of what has replaced it! Trump vs. Kim risks the lives of millions.
Source