Go to a store that has both, close your eyes and aim the pistol. Most will find that they are looking down the barrel of the XD, while the glock will be pointing up at about 10 degrees. Both have a great rep, buy the one that has the best feel to you and feel good about it.
Bullets have well documented performance specifications.
Min Velocity info is available, and describes the performance floor of the bullet... DON'T allow yourself to reference F.P.E. as an accurate descriptor of killing power.. You are smarter than a copy editor, and you understand that you can determine maximum (reliable) effective range by comparing your drop chart to published bullet data....... And, dog-on-it, people like you!