I would opt for a Beretta over any model Glock, but that's because I don't like Glock's trigger, grip angle, and lack of a decocker. Otherwise they are a solid firearm with a decent following and reputation.
However if I was looking for a daily carry, CCW gun, I wouldn't confine my choices to just Glock or Beretta, I would also look at the Springfield EMP, and Kimber Solo as possible choices, however at the end of the day I would probably go with the Beretta PX4 Subcompact, or the Nano...
Like others have said....try several, find the one that suits you the best, practice with it, and get to know it better than you know yourself. Find the ammo that it like the most, and stick with it.
Good luck in your search.....
NRA Certified Firearms Instructor / Range Safety Officer