Iranian voters were choosing between a hard-line candidate and his more moderate rival in the run-off election.