How to avoid linking to an already linked input displace existing link to a contiguous input?

When I drag a link to a destination node’s already linked input, I see that the existing link moves to the next free input instead of simply disappearing. As sometimes I’ve missed noticing this behaviour and that has led to hours of wasteful debugging, is there any modifier key or preference setting to avoid it?