Do babies benefit more from being breastfed or formula fed?

Do babies benefit more from being breastfed or formula fed?