It is both the training and the superior military hardware plus force multipliers such as AWACS, ECM that wins a trophy. Please do not ignore the fact that before the demise of the Shah, Iranian Air force was not among but THE best air force of the region. The Iranian Air Force did lose her teeth over the period of time but was still in pretty good shape during Iraq Iran war.
Iran didn't have AWACS or ECM at the time and still beat the Iraqi Air Force.