I don't think Crowder's salary gets us there and he's signed for two more years, so he's safe.
KO plays a position of need. Also, he allows us to go significantly above the cap, and is a decent-sized salary to package after January 15 if there's an impact player available in trade, so he's safe.
Avery is the best player of the three, but will get $18+ million in free agency, and Smart, Fultz, Brown and Hayward can all play SG. He'll bring back a future #1, and his salary alone probably gets us enough under the cap to sign Hayward.
It's AB.