Hi Jordan and welcome to HGF.
Here's my advice. Get your hands on as many different handguns as you can and fire at least 100 rounds through them to see what 1) Feels best in YOUR hand and 2) You shoot best with. Rent or borrow a buddies.
If you have access to some local ranges and get to know some folks. Most gun people I know are very eager to show off their firearms and many will let you shoot them. Bring your own ammo though and a little extra for the kind folks who may offer you a session with their weapon.
You are talking about CCW so I would say this is very serious business picking out a gun you may rely on to save you skin.
It looks to me like you are trying to keep cost manageable so i won't offer up my favorite Sigs as a choice for you to consider. They are pricey. I would strongly suggest you take a look at the Smith & Wesson M&Pc. You can get a Full Sized .40 with a 15 round magazine or the "c" with ten rounds for a reasonable price. The one I own is a tack driver and it feels great in my hand.
I'm a certified Glock hater, but I will confess that I know people who own them and love them. Many shoot them better than I shoot my Sigs, but I don't blame the guns. Grip angle and blockiness seem to be the make it or break it with most people considering Glocks. See how it feels to you.
I own an XD, but to be honest, the jury is still out for me. Some times I like shooting it, other times I don't. The stock trigger blows, but that's common to many out of the box firearms. Its' a great concept and well put together.
I don't know enough about your other two options to comment on them
Whatever you do decide, please take that class you mentioned. Practice, practice, practice.
Enjoy and good luck. Keep us posted on what you decide.