I think that AWS DocumentDB uses the last mongodb version that wasn't their new(ish) SSPL license and any compatibility beyond that was "clean room" backported. Its possible Azure is in a similar place.
Most obvious indicator is DocumentDB is single node write whereas Mongo is really not, coming from Aurora Postgres.