What a pain in the arse... I have learned the hard way (well not nearly as hard as you) that when nothing makes sense, the parts you got are probably junk or worse than the one you are replacing. It's really quite sad the quality of auto parts that are available.
I've had: (for various Ford and GM products)
Freshly rebuilt "Load Tested" alternator with the passing test sheet in the box - lasted 5 seconds, battery light went on, dead. I blame the made in china voltage regulator. Had to exchange it for another, spent a lot on gas.
Rebuilt air injection pump - right angle hose nipple pressed in with the end facing the side of the other nipple.

Couldn't put the hoses on. Lost a lot of cash since I bought it online and had to go get another at the local store b/c it needed to be fixed. Paid more and then had to pay shipping back.
Rebuilt master cylinder #1 - I was replacing another rebuild that the reservoir was leaking on, got it done and bled, it leaked from one of the line connections. Had a huge gouge in the line seat. Had to get a third and subsequently lost a whole day bleeding brakes.
Rebuilt master cylinder #2 - Replaced original leaking from the piston / shaft seal. Rebuild did the same thing, had to do the job again. Lost lots of time, it was a complicated one where you had to swap the reservoir.
Explorer rotors and pads - The mechanic used whatever he got from the local place. Pads fell apart in 4k, rotors turned into warped junk in 6k. Had to do it all again myself. (with motorcraft parts, the rotors weighed 1/3 more)
I think that's it, might be one or two more I am forgetting. I try to get dealer parts when its not a total ripoff, because the aftermarket is loaded with junk.