I agree with G.C. about it being a personal choice. I don't have the HS2000 history, so I'm immune on that front.
I own multiple Glocks and XDs. Either is a solid choice. IMO, the biggest differences are the trigger and the grip angle and shape (The XD has a grip-to-barrel angle that is almost identical to a 1911-style pistol; the Glock is more like the old Luger: it's set at more of an angle). Inside, the biggest difference is the mechanism that readies and fires the striker, but I wouldn't worry about that.
I'd try to get one of each, side by side. Doesn't need to be at a range. Make doubly sure both are unloaded and do the natural point of aim exercise first.
Step 1: Stand and face something specific and fairly small that's across the room at eye level. Keep your eye on that object and raise your arm, pointing your finger right at that object across the room. Keep your palm perpendicular to the floor, as you would if you had a gun in your hand...don't gansta' it. Do that five times.
Step 2: Then, close your eyes while you raise your arm and point; open your eyes. If you didn't point precisely at the object, adjust your point and lower your arm. Close your eyes and repeat five times.
Step 3: Now pick up one of the two pistols; don't raise it yet! Get a solid master grip with both hands, finger in the indexed position along the slide, then close your eyes. Keeping your eyes closed, raise the pistol and try to point it accurately at that object across the room. Open your eyes and see how you did; don't adjust your aim, just see how closely you aligned the sights on the target.
Put that pistol down; only one try with it. Towel off the perspiration and get some water
and go back to Step 1. Do the two-sets of five finger-only points before you pick up pistol number two, close your eyes, and see how that one aligns for you.
It isn't difficult to get used to different pistols, and if something inside tells you to buy one or the other, go for it. But all other things being equal, a new shooter will make faster progress with a gun that most closely matches his or her natural point of aim. Accuracy will come a little more quickly, as will post-shot recovery and speed of presentation from holster.
After you decide which one is closest to your natural point of aim, dry fire each one of the guns at least a dozen or so times. Focus only the trigger: crisp or mushy? A lot of travel before it engages and fires, or less travel? Weight of pull? Decide which feels best to you.
I'd recommend you also get a feel for the trigger reset. John Farnam calls this "catching the link," which is a good descriptive way of how it feels. Test it this way: dry fire the pistol and keep the trigger pressed all the way back; don't release it. Then reach up with your off-hand and cycle the slide (you don't have to go for a full all-the-way-back-and-let-go cycle; cycling it about a third of the way is plenty and you can ride the slide down; you're just "cocking" it, not cycling a cartridge). Now slowly let your trigger finger out. At some point before the trigger is all the way out, you'll feel a click. This is "catching the link." At that point, even though you haven't let the trigger return all the way out, you can now fire again. This trigger reset point is important to the ability to fire multiple shots accurately and with speed.
The trigger reset will be less of a factor for you in choosing this first defensive firearm, and it can always be tuned by a gunsmith later. But if one of the two pistols feels noticeably better than the other in "catching the link," make a note of it and use as your tie breaker if you just can't make up your mind.
I know you've narrowed it down to two very good choices, but if you have a chance before making the purchase, I'd also suggest you try a Smith & Wesson M&P. It will feel different than either the Glock or XD, and it has user-swappable backstraps that can easily make the grip larger or smaller, depending upon your hand size.
All three of these are similar in that they're polymer framed, striker fired pistols. The Glock has the longest history, but all three have good reliability records. And I'll bet you one of these three will come close to your natural point of aim.
Good luck!