The M&P Pro 9mm would be the best bet for you. Cheap ammo, good length/weight gun. Rails so you can attached a light for home defense. Lots of accessories that you can find as well. so it's a multipurpose good first-gun.
Get a good belt, holster, 5 mag pouches and 6-7 magazines would get your started for both IDPA and USPSA.