My experience of Shimano/SRAM:
16 years of ‘serious’ MTBing, 1 slightly bent (irritating, wouldn’t play nicely in bottom gear, but rideable) XT mech.
3 months of SRAM around 2012, X7 9speed – bent, X9 10 speed – bent, x7 – 10 speed, bent.
Could be fluke, but that failure rate was unacceptable and unsustainable when Shimano mechs were £25 and SRAM £75! I’ve had SRAM stuff last just fine when not riding anywhere ‘gnarr’, and I’d probably be happy on a road/CX bike, but the CNC’d mechs just weren’t as tough as the forged Shimano versions. I’ve not broken a Shimano mech since going back!
GXP seem to be far better than they used to be, the one in my fatty is still going strong (touch wood, it was creaking the other day and I flushed it with GT85).
Brakes, swapped my Elixirs to Shimano XT last month, actually slightly disappointed. Maybe it’s rose tinted glasses but the XT’s used to be neck achingly good, and I used to have trouble with Elixirs, but first few rides out with the shimano and, mehhhhhh, they’re definitely lacking the same bite.