No, a custom UPI ID won’t save you from your phone number being shared with merchants. [1] UPI payments also leak the person’s full legal name on transactions. Whether this is useful in merchant payments (not personal payments to known people) is highly doubtful.
[1]: https://scroll.in/article/1045536/are-your-upi-payments-farm...