maya automatically has a selection hierachy. meaning if you click where theres both a joint and poly visible, it will automatically select the joint, it has dominant selection so to say.