Winning Child Custody

Is being best able to provide for a child as cogent a reason for child custody as being the primary caregiver?

Rio Madeira asked:
The father usually is better able to provide for the child although the mother was the primary care giver. Are they both equally good reasons for child custody considering they are both needed to properly raise a child?