The Mending and Infinity enchantments are mutually exclusive, meaning only one can be added to any given item in survival.