It should not be impossible to at the very least match human capabilities.
ie.
Autonomous aircraft going down runway.
Unknown/unplanned/confusing situation occurs.
Do I have enough stopping distance available?
No.
Take it airborne.
yes.
Stop.
Playing Devil's advocate here but you might need a a third option
"stopping distance now unknown"..
As would apply in the case of a sudden runway incursion ahead during the take off roll - the blocked runway case....
(I'm not suggesting an answer - just wondering what logic you would suggest is used )