I often have a problem with deselecting objects in the scene, for this I use the shift+leftclick key. For example, I have two objects selected, and below them a third object, I try to deselect one of the objects,but instead it attaches to them a third object, which is located below them.
Screenshots are attached.