Hi @Nanjappa, Ashwini,
Thank you for posting in this community.
Sorry, we don't have any other way to accomplish this at the moment.
This is because we need to do the file name duplicate determination before uploading the file to the library, and most of our automations (Power Automate) are triggered after the file has been uploaded to the library.
SharePoint Online asks us after we upload a file with the same name if we want to replace or keep both. I'm afraid we'll have to manually select both option at this point in order to automatically add a unique suffix to a file with the same name.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.