Depends on the team and the return
Let's say the Jays sign Bregman, and Orelvis is crushing AAA while playing an average 2B
Bo, who is leaving at the end of the season, is playing well. Trade him to fill team needs and run with a Vlad, Orelvis, Gimenez, and Bregman infield
There are scenarios where trading Bo at the deadline will improve the team