He should do both. Or only attend the debate if the apology if on air, at the beginning of the debate.
They need him much more than he needs to be there.
Trump should demand the apology be rerun before and during the debate.