Not all aftermarket parts are created equal. There are aftermarket parts that are of significantly lesser quality than OEM parts for sure. However, there are aftermarket parts of the same quality and even superior quality as well and as a rule they can be purchased for a LOT less than buying OEM parts. OEM parts are almost always vastly over priced compared to equal or superior parts from the aftermarket.
OEM parts are far from being the pinnacle of quality some think they are as well. While you can always count on the correct OEM part fitting without question you can not count on that OEM part being the best quality part for your money. Car mfg's do not buy/spec the absolute best quality part they can. They buy parts that do the job good enough at the best price( for them )to get through warranty. I have always considered OEM parts to be nothing more than middle of the road quality wise. I seldom if ever use them. Too expensive and nothing special about them.
If you know what aftermarket brands are good you are far better off going aftermarket IMO for most things. Also, many times that OEM dealer part is nothing more than a repackaged aftermarket part with a higher price tag. A good example would be the OE plugs for my truck. They are nothing more than regular old everyday copper core Champion plugs in a MOPAR box. Dealer cost is $5+ a plug while the same plug bought at AAP or AZ is less than $2.50. I wouldn't use a Champiion plug in a vehicle of mine if my life depended on it but if I did use them I sure wouldn't buy them from the dealer at 2X's+ the cost for the exact same plug.
All of us pretty much, here at BITOG, know that OEM fluids are just repackaged fluids from the name brand companies for the most part( excluding specialty fluids like GM autotrakII as an example ). I would never buy OEM fluids at the prices dealers charge for it unless it was a dealer only item. I would just buy the name brand stuff from a parts store. I know people though who will only buy their fluids from the dealer. It blows me away.
I have seen lots of OEM parts that are just repacked aftermarket stuff as well. Everything from shocks to suspension components to brakes and so on. I worked in the auto field, both aftermarket and dealer, selling parts and I know too much about parts to go buy my stuff at the dealer. I can get superior quality at a fraction of the cost in the aftermarket.
With that said there are times, as others have mentioned, when the OEM part is really the only smart way to go. On my truck for example there has been a lot of issues with aftermarket transmissions filters not fitting correctly and causing trannny issues. That is an instance where the OEM part is your best bet. Also, I personally will only use OEM body parts when I can get them. That is an area where cost is not a concern to me.
I will use OEM parts when it makes sense to but IMO that is seldom.