Since you are considering HD as well as occasional CCW, it will depend upon whether you carry IWB, OWB, or pocket. When I carry, I do so in the POCKET only.
A primary consideration re pocket carry would be weight.
Yesterday, a friend and I briefly took a look at two sub-compacts. A Glock 26 and a Springfield XD9 sc.
The XDsc is a fine gun, but it's too heavy and a bit large, IMO, for a sc to be used for POCKET CARRY. My friend will probably get the Glock 26. But, then again, he and I prefer POCKET CARRY carry exclusively.
While at the gun store, we also inspected my new gun, e.g., Kahr CW9, pending pick-up. It slipped into my dress pants front pocket nicely without a holster. I'll probably be carrying it in a DeSantis Nemeis pocket holster. It weighs only 17.7 oz. unloaded w/mag inserted, but I'm relying on other firearms for HD, namely shotgun and S&W .357 magnum revolver.
If when you carry it will be for POCKET USE exclusively, then try not to get a gun with an empty weight much more than one pound.
Another consideration for dual use, e.g., HD and CCW, might be a Glock 19, or a S&W M&P9sc. Great guns-make sure you like the grip angles. size, weight, and the way they point.
There are additional choices out there, too, so I would not be hasty in deciding which is best for you. Be sure to hold the gun in question before deciding, and see if you like it; better yet-rent one at the range.