I’d go with the Glock 19. It’s the gun I’m most comfortable with. I shoot it accurately, easy to carry without feeling weighed down and it’s a breeze to keep functioning smoothly.
If I could only have one gun, it would probably be a basic AR in 5.56. You can find parts anywhere, it doesn't kick too hard, and it's good for everything from training to self-defense.