If the US decided to attack Canada then having Swedish 4th generation fighters instead of US 5th generation fighters will make literally no difference in the outcome. This isn't a serious calculus.
The Gripen E is 4.5 gen, and I am not sure having US fighters in a war against US would be so much better.
The Gripen E is 4.5 gen, and I am not sure having US fighters in a war against US would be so much better.