Mental Model
A trie stores words by their letters step-by-step, making prefix search fast. A hash map stores whole words as keys, so prefix search needs checking many keys.
Analogy: Imagine a library organized by shelves for each letter (trie), so you quickly find all books starting with 'A'. A hash map is like a pile of books with labels; to find all starting with 'A', you check each label one by one.
Trie:
root
↓
a -> p -> p -> l -> e
↓
r -> t
Hash Map:
{ "apple": true, "app": true, "art": true }