Glock. Lots of after market stuff. proven reliability.
I'll agree with you on the aftermarket. But there are plenty of reliable pistols out there.
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