Iran's president on Sunday defended a memorandum of understanding with the United States as the best way out of a stalled war while the new head of the Islamic Republic's top security body took a more defiant stance.