I would not trust Amazon for any car part ever, except if it was something non-critical like a cabin air filter. Rock Auto atleast has some vetting process for their suppliers so the chance of getting a counterfeit is rate. That being that these suppliers are usually larger warehouses that may also be supplying parts to various auto repair shops or retail stores.
With Amazon, there is a small vetting process in that for sellers to be allowed to sell in the automotive category, they need to prove themselves to be somewhat of an actual automotive business (eg. incorporated). But that has no guarantee on how these sellers obtain these parts. It is unfortunately very easy to get a cheapo knockoff part from China, throw it in a Toyota stamped bag, and sell it as OE on Amazon. Sellers might even inadvertently be sourcing counterfeit parts from their sub suppliers not knowing where these parts came from, just that they are cheaper.
In fact, I would go as far to say it would be a good idea not to be using Amazon for any part in a critical service. Not just cars, but for electronics, appliance, house, etc.... There was a recent video on Youtube where Louis Rossman exposed how a popular 5 star reviewed pack of automotive fuses actually did not meet their rating. eg. a 2 amp fuse took 8-10+ amps to blow. Imagine how many DIY hobbyist or even repair shops bought these thinking they were cheap and convenient only to be installing them in countless vehicles.