If you use AME and export in Quicktime you’re using the Apple codec. Which is missing a bunch of features and is limited in a bunch of ways eg. the QT version is missing multipass encoding and is resolution limited. If you use the H264 format you’re exporting with Mainconcept.
These are different encoders.