"Clearly, we need to remove the human pilots and double down on the automation."
[This is where the people using shallow analysis go nuts. But wait.]
Because the flawed system was only installed for the purpose of avoiding the expense of retraining human pilots to a new model of aircraft! In a fully-integrated automated piloting system, there is no separate trim-compensating subsystem. The trim parameters are plugged directly into the aircraft model, and the automatic pilot has access to all the sensors in the craft to make its trim decisions, instead of just the angle-of-attack sensor.
Instead of re-certifying hundreds of pilots, you just validate one new aircraft data model.