U.S. presidents of both parties have often shown better judgment in pursuing diplomacy than going to war.