If they renounce everyone and actually go with that $56M in cap space number. They could do both with some maneuvering.
First year for Ayton at the max on a $122M salary cap is $30M. So you are down to $26M which is inside the 25% window of Haywards $30M, but probably not after the Pistons draft someone #5. So you would have to throw in some salary filler to Charlotte. But their entire reason to move Hayward is to open up cap space, so they probably don't want salary back. Or maybe sending out $30M and getting about $5M back is fine with them.