What is the use case? Depending on (lots of) things it could be as easy as using SSID as a differentiator. If it's a PC/Mac this would work pretty reliably, have the client configured to connect to two SSIDs, have ssid1 broadcasting from the AP you want to be the primary and ssid2 out of the secondary, put ssid1 at the top of the scanning list.