I generally agree, to avoid using digital zoom.
But to the extent you would use it in the same way as cropping in post-processing, if your picture is sharp enough, light is good enough, and you have enough resolution, a bit of digital zoom is okay.
You go back 6-10 years, cameras needed more megapixels just to get a decent 8X10.
These days.. with cameras of 8 mp, 10mp, 12mp, being fairly cheap -- You have plenty of resolution for a 8X10. In this sense, a 18-20mp camera is no better than a 8mp camera.
But where that 20mp camera still comes in handy -- the extra resolution gives you more cropping flexibility. You can crop half the picture, and still get a good 8X10.
Typically, I would still advise to use optical zoom. And if you have the pixel flexibility to crop, do it in post-processing.
But if you really just want instant results, don't want to bother with post-processing, then go ahead and use digital zoom judiciously.
For example, the iPhone only has digital zoom. Pictures I take on the iphone aren't meant to be blown up into 8X10s for framing. If I'm taking a picture with the iPhone, it's usually just because I have a moment I want to instantly capture and share on facebook with friends and family. In that instance, I use digital zoom.
On my regular compact camera, the Rx100, I basically keep the digital zoom turned off.