A cannon is of such limited use today in aircraft, its the weapon of last resort... and likelihood of either side scoring a kill with a cannon in air to air combat is insanely low.
A Business Insider review found that the last time a US plane shot down an enemy aircraft with guns was most likely the Cold War-era tank buster A-10 downing an Iraqi helicopter in 1991.
Agree on the premise during a dogfight.
I’ve also watched F-18 HUD camera video of Marines doing gun runs on AAA sites during the first GW.
Keep the guns, ya never know when they become handy.