Handle cookie tie-breaker

If the peer and endpoint cookies are the same (very unlikely),
use their URIs as the tie breaker. We could just use the URIs
and skip the cookies...