Theres one thing that you seem to be overlooking,and that is the swedes total reliance on imported western jet engine technology,indeed the swedes rather unwisely scrapped their own indigenous jet engine development program back in the 50s,preferring instead the expedient shortcut of licensed western engine tech.congratulation not upgraded for 23m upgraded god now how much and you effectively ended kowsar program and didn't get even a ToT on a single bolt used there.
remind me of what happened to Avro Canada CF-105 Arrow and nearly happened to JAS-39 Grippen (escaped by just 5 vote) now for that disastrous decision this happened to canada
and what Canada royal airforce got of the fiasco, the inferior shit
now look at sweden and what they got of the project
now they went on with their project instead of what traitorous Canadian politician did and after 35 year of work they got this
the deadliest and most advanced light fighter available there and above all one of the cheapest out there to operate by just 5800$ /hours of flight its twice for j-10c and f-16 and thrice for F-18 for rafale and Eurofighter its 4 time and for f-35 its 6time that amount.
you can decide here going Canada route , getting old Russians airplanes that never ever were successful in real war and effectively destroy all achieved in Kowsar project or go Sweden route ,invest that money on Kowsar project
Ultimately BOTH the canadians AND the swedes made stupid mistakes that cost them.
Now since sweden has officially come out of the neutral closet and expressed ts wish to become a nato vassal nation one could argue that it doesnt really matter,but in that case why even bother with an indigenous fighter program in the first place.
The truth is that neither of these nations indigenous fighter programs serve as good examples for iran.