In both causes software is attempting to prevent the stall.
not quite true. The MCAS was developed not to prevent the stall but to ensure that the stick forces approaching the stall continually are heavier iaw FAR design criteria. It does not prevent the stall.