You stand in front of a slider that runs from 1 to 100 and nobody told you what the number means. So you pick 80 because it sounds safe, or leave the default and hope. The real question is not which number is correct, but how to choose image quality and be sure you did not wreck the picture.
Quality in JPG is not a linear measure of sharpness; it is how much detail the encoder keeps. At 90 it keeps a lot, at 60 it starts merging similar areas. The gap between 90 and 80 is small, between 80 and 60 large, and between 60 and 40 catastrophic on faces and text.
The same number does not mean the same thing across formats: WebP looks cleaner at low settings, and AVIF can drop to 50 with nothing visible on an ordinary photo. That is why numbers copied from another article will not help you — an image with a different amount of detail behaves differently at the very same setting.
Because the number ignores the subject: a frame full of leaves and detail survives 60, while a smooth sky shows banding there. And the eye catches what no metric measures — a halo around letters, mush in the shadows, skin turning into flat patches.
The honest rule: blow the result up to 100% and compare it with the original on the screen it will be seen on. Not on a small phone where nothing shows, and not at absurd magnification where everything does. There is no absolute best quality — only the best quality for this image, in this place, at this size.
These numbers are starting points rather than laws, but they cover most cases you meet in an ordinary working week, and they save you three attempts on every image:
The quick rule: start at 80, zoom to 100% and decide with your eyes. If you see no difference, the number is above what you need; if you see damage, the right quality is the lowest number that hides it on your screen.