Rockets are sending out more salaries than they're taking back.
Suns can't take back more salaries than they're sending out since they're an apron team, meaning a third team must be involved.
However, this trade works because Dillons Brooks' cap hit will decrease by $1 million.