I don't think the situations are comparable, or if so we're San Antonio. In this case the team trading for Zach wants him (apparently) and aren't just trading for expiring money. We take on long term money though, plus draft consideration as payment on the long term money.
If Zach is being moved solely as a short contract then we can't expect a return. If that's what it boils down to you let him be tank commander for another season, expire, and if the last game is away you tell him to find his own way home. Then maybe you absorb a bad contract for picks with that empty money if nobody wants to sign the way San Antonio did. Except they actually got a serviceable player and locker room leader