That's what wiped out local parts stores. You never knew what they had in stock, and the markups were huge.
Also, Digi-Key doesn't have a counterfeit parts problem. Digi-Key deals directly with manufacturers. The supply chain is simple and has no anonymous resellers. If someone finds a bad part and reports it to Digi-Key, their systems can trace it back to the manufacturer lot. So not many duds get through.