Whatever some other program's "Maximize" effect may do, the Audacity "Amplification" effect certainly does not compress. It simply raises the level of all the selected sound by the same amount, exactly like turning up the volume.
There is a compressor in Audacity too, but that's a quite different effect. And a hard limiter if you really want to squash it...