I'm quite sure if Ukraine had access to F-35 or F-22 there would be stipulations that those would be used the same way. Countries try to be very careful about not giving opponents information about the latest high end gear.
This is nothing new, BTW. During WWII the UK forbade the new Gloster Meteor jet fighter from flying over Nazi occupied territory, for fear that the Germans might learn something valuable from a crashed jet. It was only in the last few months of the war that the Meteors were allowed to fly over enemy territory, as by then the outcome was abundantly clear and even if a jet was shot down the Germans wouldn't have time to do anything with the information.