We're comparing Vienna sausages and pizzas here.
If you like plastic, want a single action only cocked and unlocked that is lightweight, get the Glock.
If you want DA/SA, rather stick to an aluminum frame and don't mind the weight, get the Beretta.
Berettas in anything other than fullsize are not that common. With the Glock, you have the long slide Tactical/Practical (model 35, do they still call them Tactical Practical?), the fullsize, midsize and subcompacts. Something to consider.
If you get the Beretta, call them up and order the double action model mainspring, it's $2.