Both pistols have good reputation but I do not like the stock trigger on either one.
I would stick with a 9mm. Less expensive practice ammo allows for more practice and defensive ammo will give similar performance of higher caliber bullet.
M&P and P07 are good home defense sizes but I find that size too big for CC. I am experimenting with a DAO Kahr K9 to replace my Sig P6 or Walther P99 which are similar in size to the M&P and P07.