In this case your easiest workaround is just dealing with/passing the index of the trigger device. Otherwise, your options are creating a wrapper class with the specifier so it is comparable.
A last janky option is checking the Transform of a device to compare it with other devices.