I do a lot of focus stacking.
Like, a lot. These days basically every one of the, erm, still life objects pictures that I post (okay, okay, knives) are stacked. The closer you get to your subject the shallower your depth of field becomes, and even with a pinhole aperture it's often impossible to get all of an object into focus in one go.
I will say this about that: I do all of my stacking outboard, not in my camera. That's because my Canon R10's inbuilt focus stacking (and bracketing) is profoundly stupid in both the way it produces results and how you have to operate it. I can deal with the clunky bracketing interface because I can set it up once and I leave it on all the time, or at least all the time I'm taking object photos.
But if you don't perfectly appease the camera's built in algorithm and ensure that all of your frames have at least something with sharp enough contrast on it for the camera to decide it's "in focus," it throws a hissy fit and produces an error message, and deletes the entire stack of photos it already took. You can't specify the range to bracket through in any real world units, only in arbitrary steps of "less" or "more," and then you get to guess how many steps the camera should do. You don't get to try again with the images or a subset of the images it's already taken. Ye gods forbid you undershoot -- not all of your object will be in focus, so do it again, stupid -- or overshoot -- hissy fit error message, see above. You don't get to tune which shots are included in the stack and which aren't, and it makes dumb compositing decisions that tend to result in putting hazy, fuzzy clouds around edges that should otherwise have been in focus and doesn't deal with reflective objects in any meaningful capacity at all.
The best way I've seen it implemented from a UI perspective is how Open Camera on Android does it, which allows you to set a specific focus depth for the start and end of your stack, and then you specify how many photos to take in the middle. It evenly divides the automatic focus adjustments between that range. You get a preview of each focus depth as you mess with the sliders, so you can ensure that the range is actually where you want it without having to guess. This is fast, easy, and intuitive, and you don't have to dig through any submenus to make it do what you want.
So what I do instead with my R10 is take an absurd number of shots with tiny steps, and deliberately both under- and over-shoot the focus range, typically from an inch or so in front of my subject all the way out to infinity. I use Helicon Focus on my PC which seems to give me the best results with a minimum of having to fight the user interface, and I simply discard the shots that are outside of usable range. Using this method you can also intentionally exclude images that actually were in focus but you'd still like not to be in your final picture, while still maintaining a greater depth of field than any single photograph could have provided. Helicon seems to do a pretty decent job of not making this look natural and not like an uncanny Blender rendering, or something.
The bad news is that Helicon is not cheap. The good news is, you can always fly your Jolly Roger and lay your hands on a copy of it anyway.