The money received for selling a draft pick goes directly to the Owners and has no affect on the team's Salary Cap/Apron. However, you are 100% correct that 31 potentially has a Salary Cap hit and 45 doesn't.
In my mind, we mismanaged our Cap, wasted resources trading for Gobert by essentially...