Onceapilot, it’s not easy to compare weapons, or different aircraft with the same gun; time, threat, role …
Firestreak / Redtop were more likely to achieve a kill than the early AIM7 / Sidewinders on the F4; but then things moved on.
The Lightning missiles also had greater kill probability than the ADEN against most targets, but in a close-range turning encounter then the gun offered more opportunity, but due to the longer distance harmonised firing range in the Lightning when compared with a Hunter (speed, Aero D, etc) it resulted in a lower pk.
Pilots were trained for smoothness and expertise in gunnery range and tracking accuracy, but in the ‘heat of war’ my advice was to take any shot, at least you might frightening the opposition into doing something silly; and with a better opportunity, all of the theory goes out of the window.