When you Provision a Mesh Point or Mesh Portal, there is a mesh cluster profile that is attached to that access point. If you provision two different access points with the same mesh cluster profile, they can mesh with each other. If you provision them with two different mesh cluster profiles, they probably will not be able to connect unless the parameters in the two different cluster profiles match, like encryption, Mesh SSID and PSK.