If one or both objects are either a group or component, there is no entity interference. The objects remain whole, and can be moved out of each others space.
The trick to moving components against other objects, without moving them into the other objects space, it to click on an edge, preferably an endpoint of the component to be moved.
Then move that component to the target, carefully. As you approach the target, the moved component will snap to the edge/point of the target. Release the component at that point.
You can then fine tune the position after that. But there is no restriction to move an object into the same space as some other object.
If you grab the component anywhere not on an edge or endpoint, there is no snap to, and it will move freely.
To move entities, groups or components INTO another group/comp's space box requires you to select it, clipboard copy it, then edit the group/comp you want it inside of and Paste-in-place. Then move it where you want it. Delete the one in the original position.