For a complete novice, the usual recommendation is a revolver for simplicity/reliability. On a misfire, you just pull the trigger again instead of clearing like an automatic.
If you want a compact handgun, stay away from the magnums and go .38 special, or if you can handle something bigger, .44 special. Try before you buy (rent at range).
If you’re after something for home defense, I’d recommend a 12-gauge shotgun instead of a pistol for most folks. Use #4 buckshot to limit overpenetration.
Hope it helped...
I like the 12 ga constellation round for home defense. It has a .65 cal slug and six double 00’s in a star patteren. Hard to find as most online sellers are out of stock.