Compression vs. resizing
Compression re-encodes the same pixels more efficiently; resizing changes how many pixels there are. A 4000 px phone photo destined for a web page benefits from both: resize it to the display size first, then compress. For a strict upload limit, the exact-size compressor automates the tradeoff.