A GC doesn't even matter here, as it never touches internal state. And even if it did, there's a big difference between an entry with an empty value and no entry at all: in the former, the entry itself still exists, so it *still* takes up space in the hash table.
To think otherwise is insanity 😭