Intelligence checks and attacks are different.

More than that, it should definitely nor provide perma-advantage for Wizard cantrip attacks.