"The AOA tube is constructed with two tiny machined holes to create differential pressure sources. One hole is bore-sighted at the front of the AOA tube along the longitudinal axis, while the second, located at the bottom of the AOA probe, is pointed downward at a 45-degree angle to act as a reference source.
"Garmin’s normalized AOA includes an additional static-air-pressure source to allow the air-data computer to calculate airspeed and air density, important in calculating precise AOA. The addition of the static-pressure reference input makes the AOA indication accurate regardless of the airplane’s weight, speed or configuration."
[1] https://www.flyingmag.com/how-it-works-angle-attack-indicato...
Its possible failure modes, too, seem a lot more complicated than for a physical vane.
For example, when I was designing a home weather station for myself, I wondered if the anemometer and wind vane could be replaced with ultrasonic sensors and emitters. If you take four ultrasonic emitter/ultrasonic sensor pairs and arrange them in a square, and measure the time of flight of four pulses, one from each corner emitter to the diagonally opposite sensor, you can determine the component of the wind vector along that diagonal. Combine the components from the diagonals, and you get the wind vector.
A bit of research turned up that this was not an original idea, and it does work. There are commercial anemometers and wind vanes (are they still called wind vanes when they don't have a vane?) for terrestrial use that work this way. There have also been many home made ones, such as this one [1].
Offhand, I don't see why such a thing would not work for an airplane.
[1] http://embedded-lab.com/blog/making-an-ultrasonic-anemometer...