I would concur that it does depend on the pistol if it has been modified nor not. Partially it could be the fault of the shooter too.
No gun is perfect. I've seen and experience my own Glock's fail at the range. Luckily on IDPA and 3-Gun events I have not experienced failures on my Glock's and M&P's.