Really not how this works. The compensation is money... and maybe they would work out a deal where they maintain a royalty for life.
Kingdom Hearts is entirely dependent on IP from Disney and Square... you really couldn't sell it if you wanted to without allowing for continued use of Disney characters past, present, and future.
For some reason people seem to think business works tick for tack. Xbox is putting games on PS5, so Sony must put games on Xbox... real life isn't like that.
Regardless, the only reason Sony would sell Spider-Man is if they were selling Sony Pictures to another company.