How can I make 2 objects that are close to each other being treated as being in the same position?

Object a (0.5, 0.6, 1.9)
Object b (0.4, 0.6, 1.9)transform.

I have 2 objects at the following position, and when doing if statement,
I wanted these 2 to be treated as being at the same location.

if(a.transform.position == b.transform.position){}

These will definitely turn out false since they are not the same.
How can I do it so that true will be return?

Try something like this:

if(Vector3.Distance(a.transform.position, b.transform.position) < someEpsilon) {
    // consider them the same location!
}