The Glock price is pretty average, but you might be able to find it for right at $500 if you look around.
The price on the Smith seems too high. I can order one for $513 out the door, so I think you could do better.
Of course, ordering one will delay your getting a pistol by about a week.
The Glock 26 is one of the best all-round CCW's out there. Does everything well. I have a feeling the S&W will be just as good, but I've not used one. The Smith does have the advantage of having interchangeable backstraps, which might make it fit your hand better than the G.