There is no such thing as a perfect iPhone, iPad or anything mass produced.
I would highly disagree. My iPhone XS was perfect (And yes, I definitely inspected it). My AirPods and iPad were perfect in my last purchase.
There are perfect products out there, but with anything that is produced into a large quantities like the iPhone, there also will be high number of defects as well, that’s just the nature of Tech in general.