I would never buy an all in one.
I suggest people not buy them either.
They are overpriced. If something breaks, more expensive to fix. When you want a new computer you throw everything out.
Hard pass.
I recommend AIO's to non-technical family as it makes my (and their) life easier helping them troubleshoot down the line. No questions about which model webcam will be compatible, calls because there are lines in the monitor after someone knocked the cable loose, why the sound won't work when someone turned down the volume on the external speakers, windows updates causing strange notices because of incompatibilities with their no-name monitor, etc.
iMacs depreciate relatively slowly so even for power users if you don't mind the cycle of selling every 3 years or so and upgrading it's not a bad deal. I do wish Apple would offer a touch screen option and wireless phone charging in the iMac base.