now that's just not true. I will grant you that he has a higher IQ and better engineering feats but with general knowledge, that also expands to magic and cosmic forces (two things that pym rarely has to deal with) and I have yet to see BP lose even one prep war (we're talking about someone that has properly prepped to defeat galactus, mephisto, doom, reed, iron man, etc.) pretty sure that he means return of ultron (the comic where ultra fused with pym).
Pym has few feats when dealing with magic, but the 2 "recent ones" he has had are pretty amazing. Pym built a machine that can harness magical energy and use it for his own uses (to torture Loki with his own magic, and to let Nico re-use her time travel spell). According to his own words Pym doesnt believe in "magic" he just views it as an erergy source.
No sure what you mean by "cosmic"? Pym's base power is shifting mass around dimensions and hes the universes foremost expert on it. He can also with his tech travel between the gaps in space to teleport. If you just mean "big space guys" Pym killed an entire race with the swipe of his hand, he deduced Stark's phoenix budter would fail, he's met both Eternity and Toaa and both seemed to state his importance.