If they both take to the air, Optimus has a chance. He's pretty agile and Iron Man isn't so fast that jets can't keep up with and target him. He even got shot out of the air by a tank while he was several thousand feet up in flight.
And most if not all of Optimus' weapons will one shot him, while Tony will have to wear Optimus down.
He is pretty agile here..