Please allow me to add, when looking at the caliber aspect of this discussion, that I chose a .40 S&W as my “shop gun”.
It is stored securely when I am not there, but when I am there, I keep it either on me or readily accessible.
The gun in question cost me about $300. .40 Smith & Wesson has fallen out of favor, so the pistol itself was quite cheap.
It is considerably older than the pistol that the OP is considering, and it’s not a gun I would recommend for my wife, or his wife.
However, I carried a .40 Smith & Wesson as a duty weapon for nearly 20 years. I’ve taken this particular gun to the range, run a variety of ammunition through it, replaced the recoil spring, and put it into service.
It is a DA/SA with a decocker. The slide mounted switch is not a safety.
So, back to the caliber versus shooter discussion, this gun is extremely reliable, and durable, and was inexpensive to purchase - but most importantly, the combination of shooter, caliber and gun performed well. I get good hits with it, can shoot it rapidly and accurately.
So, I’m not opposed to .40 Smith & Wesson. I give up three rounds of capacity, compared with a similar gun in 9 mm. In exchange, I was able to buy an inexpensive old stainless steel pistol that I don’t mind leaving down at the shop.
But, if I were to choose a gun for a relatively new shooter - I would recommend a 9 mm every time.