Mental Model
A trie stores words by their letters in a tree, making prefix search fast. A hash map stores whole words as keys, so prefix search needs extra work.
Analogy: Imagine a phone book organized by first letter, then second letter, and so on (trie), versus a list of names where you check each name fully (hash map).
Trie:
root
↓
a -> p -> p -> l -> e
↓
r
Hash Map:
{ "apple": true, "app": true, "apricot": true }