The short answer is that accelerometers and pressure transducers don’t work nearly as well for this as do several redundant angle-of-attack sensors. Of course, it seems that the 737 Max 8’s multiple AOA sensors weren’t configured to be redundant as that term is usually understood.
When you mention accelerometers, you’re probably referring to the plane’s inertial navigation system; it includes gyroscopes as well as accelerometers.
While INS systems are surprisingly capable, they drift over time, so they can’t be regarded as canonical. More importantly, while their position, orientation and velocity outputs are reasonably good relative to fixed points on the ground (at least before drift becomes a problem) they don’t tell you much about your orientation and velocity relative to the air around you, and it’s this latter information one needs to consider to detect a stall condition.
Pressure sensors are more helpful in some ways, and of course a pitot tube (which gives airspeed) is basically a pressure sensor designed for a very specific application. In theory, pressure sensors on the upper surface of the wing might detect a sudden pressure change, suggesting that flow has become detached near that sensor and a stall could be imminent.
But that’s a derived result…it’s inferred. Drivers often infer that their red traffic light has turned green because the cars around them start moving, but those cars could also just be trying to get out of the way of an emergency vehicle. The light probably turned green, but you really want to rely on the most direct result you have (seeing the green light yourself/detecting the AOA with a vane).
A properly functioning pressure sensor on a wing would likely pick up on buffeting due to crossing another aircraft’s wake or even just due to turbulence. The data would be noisy and you’d need lots of signal processing and lots of pressure sensors scattered over the plane in order to reliably detect a stall.
Meanwhile, an AOA vane picks up on these things much more directly, and with fewer spurious inputs than a pressure sensor would see. Plus, if your pitot tube is iced over and so can’t give you your airspeed because it’s iced over, you could theoretically use an AOA vane’s output to get a rough feel for your airspeed: if you’re lucky enough to be able to see the horizon and know you’re flying straight and level, a pivoting vane will tend to droop a little as airspeed falls.
I don’t know whether any avionics manufacturer uses AOA vanes this way, but it would be better than nothing under certain circumstances. You could also use the ram-air turbine (RAT) in a similar way.