In my career and hobby I bought probably thousands of ICs and never found a bad one. Maybe because I buy Name Brand parts from a local real electronic parts distributor not cheap junk from ebay, Amazon or Aliexpress.
I had an equalizer product manufactured and tested. All parts were from as above. 25,000 equalizers were made and only two failed. One had a bad electrolytic capacitor and the other had its quad opamp IC mounted backwards. The final tests were very detailed and all ICs performed perfectly. The ICs were not tested before assembly.