When CTxMemPool::TrimToSize is called with a very low number (like somewhere in mempool_tests), it is possible that the memory usage never sinks below the specified number.
This is unlikely to be a problem right now, but will be with the introduction of CTxMemPool::vTxHashes in #8068.