Of the two...G19.
Can be used for CCW.
Fun, accurate shooter for the range.
Gen 3 or later can take a light or laser on the front rail, if need be, for a nightstand gun.
But, my personal fave is the the G23. Reasons:
Occasional ammo scares arise and you can still feed it when 9mm is not available at Walmart.
Runs like a G19 with a 9mm conversion barrel and G19 mags.
IMO, the ultimate "all purpose Glock" would be a G23 with the grip shortened to G26/G27 size. Very concealable, light rail, more caliber choices, would use all length magazines and have a full grip with added G23/G19 mags and grip sleeves. That or a G27/G26 with a rail on front for a light.