Sharing XPUBs exposes the entire transaction history and future addresses. PayNyms on the other hand prevents address reuse, while also keeping the other addresses of the wallet private. It is currently supported by: Samourai Wallet, Sparrow Wallet, Cypher Stack Wallet and Bluewallet (receive only).