There must be some difference, or else you wouldn't be interested in trying to determine which is which. The question now is, what properties are set on the elements that you can obtain through UI automator.
For example, there are some tabs on one screen I work with where all visible properties are the same except one is selected. You'll need to identify what difference is visible.