That's the current meta though is the thing and it could change.
There's a plausible world where drone-aircraft are reliable enough at missile evasion that a decent strategy is to get in close and use the cannons because your entire airframe is much more attritable.
There's even a plausible reason to do this: opening a weapons bay to shoot a missile generally reduces stealth, and not hauling a bunch of extra rocket motors and mass around could make you lighter, faster and with better engines to do it.
From what I have read (from unreliable sources), Ukrainian fighter pilots tried this a few years back and stopped due to too many losses.
To engage a slow flying drone with cannons from a fighter jet, they have to get really close while flying close to stall speed. They had some success in shooting down drones but the explosion and the debris caused several lost fighters.
Maybe something like a Embraer Super Tucano turboprop fighter with a gunpod could work. But that has very little other use in the battlefield.
I mean the other way round: rather then combat drones launching missiles, combat drones which use stealth and speed to close to dogfighting distances with aircraft and engage with their own cannons.
It may be that risking some drone airframes for a higher overall kill rate becomes worth it when you're at no risk of losing the pilot, and could be more affordable then the missiles you'd otherwise have to expend (e.g. when you get to things like the Meteor which are very expensive and also use up jet engine components you might otherwise want to put on somewhat more reusable drones).
There's a plausible world where drone-aircraft are reliable enough at missile evasion that a decent strategy is to get in close and use the cannons because your entire airframe is much more attritable.
There's even a plausible reason to do this: opening a weapons bay to shoot a missile generally reduces stealth, and not hauling a bunch of extra rocket motors and mass around could make you lighter, faster and with better engines to do it.