What he didn't show in the main article, only in subsequent code, is that std::unordered_map is way too slow to be useful.
With a proper fast map, he called it custom_map, it outperforms sort-unique until the data set exceeds the L3 cache size.
Hand-wavy proof:
If your last insert caused a rehash, then you have done O(N) work plus O(N/2) plus O(N/4)... the limit of which is equal to O(2N), and thus only a constant factor more.