You are both clever countries and good at STEM. Arguing from different directions. Truth somewhere in the middle as always.
Smart people are everywhere and Iran and Israel are both smart countries with many hardworking scientists and engineers. Iran is being how should we say it, disadvantaged intensely by current political climates that have been for now decades, some self afflicted, many foreign. Israel has received support and injections of capital. Iran has experienced mostly the opposite.
Most of the world's smartest engineers and scientists have been Jews and are Jews working in Europe, USA, and some other places e.g. Australia. I've met many smart Iranian engineers here in Australia and worked with several academics for geotechnical designs and structural engineering. Also in labs at universities for testing materials for contract work. I always notice a lot of east Asian and Iranian academics at Australian top universities now. Iranians almost one third in numbers of total STEM academics!
Get over this argument. Neither are hopeless "third world" and neither are certainly superior to the other.
Iran however is impressive in its results given how things are working against them and have been for a long time. Also per capita, its performance is excellent which shows there is a cultural emphasis given on education and academics. This is always going to suggest that the people of that country have correct priorities - STEM. I have met many second to third rate geniuses (this is a compliment because first rate genius is once in a generation) in academic and working career and I must say, smart people and hardworking people truly does not matter about race, sex, nationality, or even religion. Just fewer Africans in STEM but maybe for various other reasons relating to culture, wealth, and national priorities.