Tough call.
Sometimes it pays to shop local. Autozone has limited lifetime warranty, which means, as I understand it, they "can" refuse warranty after a few years. BUT ....that said, they warranted the alternator I bought from them 2 times over the last 12 years. Meaning, I'm on the 3r one! LOL. I had to have a discussion with the manager, and I purposefully went to a store in a smaller town near me. It wasn't an argument really. She was rather nice and once she did some digging and found my original purchase, she went ahead and ordered what I needed. I DO buy a fair amt of alternators and starters from Autozone. The gal probably saw I buy a good amt of stuff from them, esp electrical parts. That may have been why ...IDK. But no way a new pimply kid would have been able to figure out what she did. So you should take to the mgr when doing something like that. Both Autozone starter and alternator were Bosch rebuilds (Mexico). I will say, each time was for something different. First was the alt clutch. 2nd time the bearing went bad and it locked up.
They also warranted the starter I bought from them 2 times in the last 10-ish years! First one lasted about 8yrs. It was the starter drive that was skipping/going out. Second time after I installed the replacement, the front drive bearing spit out after about a month. The one I have now has been on there since last fall ...seems good (knock on wood!!). Hard to say if I bought them from somewhere else...would they have been any better rebuilds?? Probably not. Autozone probably buys from the same places the RockAuto rebuilds come from.
I often rebuild my own starters and alternators....but on the Jetta, it wore the alt commutator down and wasn't worth it. On the starter, I was pressed for time and didn't have the time to order and wait for parts. On the starter, if you order one...make sure you get the right one for the transmission your car has (they're different).
So, if you have a parts store you buy most of your products from, consider going to them. If it fails, you can at LEAST try to get a warranty claim. Like I say, sometimes it pays to buy local.
OTOH.... you could buy new too. Maybe you wouldn't have that issue. IDK how Amazon in on warranty items after several yrs.
.