Choose the right output format first
Compression settings matter, but format choice matters more. A PNG screenshot may shrink dramatically when exported as WebP or AVIF, while a JPG photo often only needs a moderate quality adjustment.
If a file must keep transparency or crisp interface edges, test the output rather than assuming the smallest file is the best file.