Re: 40 S&W vs 9mm
Get the G19 and don't look back.
The .40, IMO, is a silly cartridge. It wasn't engineered very well to begin with but found a home with the LE crowd and later the civilian population.
I remember the previous poster, Basher, before he went on his mission. He got me into 1911's. That was about 6 years ago, and ammo has become insanely expensive as Basher pointed out.
Now, I must disclose I prefer the .45, but your choices are between the 9mm, .40, and I've owned the G23 and G22, and due to the snap of the .40, I got rid of them both. My dad is a big proponent of the G19, he owns two of them; a generation 3 and an older gen. 2. I absolutely love them. Glock engineered the G19 for the 9mm. the G23 came about and they threw in a new barrel and springs and called it good. Consequently, the gun and the cartridge just don't work IMO. I've shot the .40 out of several other guns, a Sig 229, Beretta 96, and HK USP and it doesn't feel as bad, but out of the G23, it just didn't feel right.
As Basher said, the 9 is way cheaper to shoot and become efficient with, every ma and pa gun shop from here to the other side of the universe has 9 ammo, and the G19 is just a pleasure to shoot, conceal, and beat the hell out of and not care.
I carry a G21 because I'd cry if I sweated on, scratched, blead on my Les Baer TRS. I would never feel undergunned for a second with 15+1 9mm.
Bottom line: Get the G19.