RE: Springfield XD or Ruger SR9???
Reliability is EVERYTHING (more so than accuracy, especially at self-defense engagement ranges) and given those two, I'd go with the XD.
Now break it in properly, then put at least 100 rounds of your selected defense - hollowpoint through it to make sure if feeds 100% (not all guns like all hollowpoints), and you're good-to-go.