I don't know if it was the latest generation but a few months ago, when I was trying to decide on my first handgun purchase, I shot both the Glock 19 Gen 4 and a Springfield XD(M) 9mm. They both felt comfortable to me and I really didn't notice much of a different in comfort level. It should be said that I'm a fairly new handgun shooter and haven't necessarily developed a feel for any one handgun style yet so maybe that's why I didn't notice much of a difference between the two.
They were both nice guns but I chose to go with the Glock (partly because of a bit lower price and partly because of the availability of accessories) however I don't feel like I could have gone wrong either way.