Overall, the .40 has a lot more potential than the 9mm.
In what way?
Know the status of your weapon
Keep your muzzle oriented so that no one will be hurt if the firearm discharges
Keep your finger off the trigger until you have an adequate sight picture
Maintain situational awareness