The selection of a handgun for private ownership is a rather personal choice. Since the original poster did indicate that they are a "newbie" in such an endeavour, I have a few questions, as the answers can help both the original poster and others clarify their potential choices.
To the original poster: You have already indicated that this weapon selection would be for personal defence and that you prefer "concealed carry" I take it such a weapon would not be for strictly a home defence weapon, but one which is also for personal defence when out in public areas, correct?
Relating to this, what sort of build do you have? Are you short or tall? Stocky, fat or slender? Do you normally wear tight clothing or loose or baggy clothing? Depending on the answers, different weapons might, or might not be possible for you to carry concealed.
In the initial post, it was indicated that you were looking for a 9mm gun, with a choice of either the Glock or Beretta. Given where you live, are there certain types/makes of weapons which are not available? How about ammunition? Once again, the answers can help make the difference in recommendations.
Incidentally, while I do not know how easy it might be for you to order them, it might be worthwhile to check out two books by Massad Ayoob, the Gun Digest Book of Concealed Carry and the Gun Digest Book of Combat Handgunnery, 6th ed. Those books cover a number of different possible handgun selections, and of equal importance, the proper load selections as well. While all the information will not be relevant, as portions of it cover issues specific to certain state laws within the US, recommendations on what and how to carry should still prove useful.
Something which bears some consideration. If the choices remain restricted to guns of either Glock or Beretta manufacture, and just chambered in 9 x 19 mm, there are still four different offers from Glock and five from Beretta alone. Never mind factoring in any other manufacturers or calibres.
Just a few additional thoughts. I would recommend avoiding most, if not all of the larger, "hunting calibre" hangun loading, as well as those model guns able to be chambered in them. For example, while a Ruger Super Redhawk revolver chambered in .454 Casull is an awesome defence weapon vs. bears, being able to shatter a shoulderblade. That degree of power from a bullet is not usually needed when defending oneself from other people.
Again, not knowing the situation where you live, but I would recommend using one of these calibres.
9 x 19 mm (Parabellum/Luger)
.380 Auto*
.40 S&W
.45 ACP
.357 Magnum
.38 Special *
Newer, HP +P loadings only
-Cheers