0xdeadbeef, you're really just complaining about bad luck that could happen to anyone, regardless of buying Apple products.
I've been using Apple since around 2001, and owned 6 of their computers at once, at one point in time. I currently work for a company that has deployed about 60 of them to mobile workers and I do support for them (along with another 60 or so using Windows machines).
The 2007 MBP you're speaking of with the battery that swelled? There were a TON of defective Li-On batteries out there, used by all manufacturers. It's not like Apple has anything directly to do with the battery manufacturing process (certainly not back in that time-frame). So that's really nothing you can pin on Apple, as opposed to pinning on owning a laptop that used a battery. The 3D graphics card that died? That, too, was an industry-wide issue for a while, especially with one series of nVidia GPUs out there. A design flaw in the BGA (ball grid array) design of the processor, essentially. Didn't hold up under the stresses of heating and cooling cycles over time.
Your 2012 MBP with trackpad issues? I don't know what to tell you there, really? That sucks and sounds like especially bad luck if it went bad only a month after being replaced. But I'm not sure I've ever run into a similar trackpad issue with ANY of the Mac laptops in service where I work that were purchased in 2011-2013, nor with the one I owned personally. I follow sites like MacRumors pretty closely too, and don't recall trackpad problems coming up as a collective issue on their forums either.
You can complain about "AppleCare" and its cost all you like, but all you'd REALLY be saying is that you feel Macs should give you a full 3 year warranty for the price you pay for them, rather than only 1 year. The fact is, if you DO buy AppleCare, you get coverage for 3 years instead of 1 for stuff like the trackpad failures you had. It's just an "extended warranty" that may or may not turn out to be a good decision to purchase. I don't believe I got more than a 1 year warranty with the Dell XPS 13 laptop I purchased last year either though -- so not sure how this is such a major issue? It's been my experience that if you DO spend extra for the AppleCare, it adds to the resale value of the computer if you decide to resell it while it has warranty left on it. So you can recoup some of that cost in those cases.
Now, I'm using a 2015 MBP "Retina" to write this message on Slashdot, right now. And yes, it will go to sleep if you close the lid if it doesn't have AC power attached. I've honestly never minded that a bit. In fact, it's served to "warn" me when I thought I was running on AC power at my desk but realized the power strip wasn't on or what-not when it went to sleep upon shutting the lid. If your cat keeps unplugging the cord while you're trying to work? I fail to see how that's a situation Apple should be expected to take care of for you? My friend's dog used to chew on his video cable to his external monitor off of his Dell laptop. Is the fact Dell didn't address that by armoring the video cords against dog bites a "Fuck you to dog owners!" on Dell's part?
I already made another post on here where I think I made it clear I'm with Consumer Reports on not recommending this latest MBP from Apple. I'm no fanboy. I've just worked with a whole lot of computers from many manufacturers over the last 2+ decades, and work in Linux, Windows and OS X all in the same day, on a regular basis. And from all of that, I can assure people that Apple made a computer that was just as good as anything else on the market, if not superior in some respects to competitors. What they're releasing in the last couple years is more suspect, IMO -- and shows their lack of focus on Macs, vs. iOS devices, watches, etc. Tim Cook clearly lacks the imagination Steve Jobs had to push the company to build new products. Apple is in decline right now, IMO ... at least at building desirable computers that are good performers AND stylish. But a 2012 or 2015 MBP wouldn't qualify in my book as an example of this problem.