A war with Iran will be a disastrous strategic detour for the United States as it seeks to compete diplomatically, economically, militarily, and technologically with China.