Having read (well skimmed) the interim report of the Lion accident particularly the part relating to the previous flight, it occurs to me that following a flight with major instrument discrepancies, continuous stick shaker and multiple uncommanded stab trim movements it might have been appropriate to add something to the tech log entries like "aircraft unfit for revenue flight pending maintenance action".
Would that have prevented the accident?
Well, perhaps the manufacturer would have been consulted for a more in depth assessment than a line engineer could provide. So who knows?
The nuclear option is sometimes the right choice.