Using UI elements when possible is a much more stable approach than using OCR or image recognition, as UI elements do not depend on screen resolution, fonts, etc., and are less reliant to the actual element being visible on the screen (i.e. not behind some pop-up, or in a minimized window). So, if possible, absolutely go with a UI elements approach.
That is, assuming, you cannot use an API approach, which would be the absolutely preferable way of doing things.
-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.