This is SUCH nonsense. You are giving very bad advice seemingly designed to confuse less technical readers. Shame!
There is no such thing as digital zoom.
You can do this as well in post processing. You can not turn one pixel in to two. There is no magical CSI "can you enhance that" BS.
There is cropping. This is NOT digital ZOOM. If you do this in camera or not, the results are the same. Fewer pixels but tighter framing around whatever you choose. But "ZOOM" means something else entirely. It is turning a fixed number of pixels in to "more" pixels. This is done with tweening. It can not create new data so it averages adjacent pixels. The result is horrid.
Thanks for commenting. I'm reporting what I saw from multiple cameras.
I do say (and show) that optical is better.
But for casual photographers, shooting in JPEG and not up for post-processing (the vast majority of people), adding digital zoom is a handy fix if optical can't reach.