if you highlight text in a mail message in macOS mail.app and right-click it, there is a context menu item that says "search with Google". it always opens safari regardless of what default browser you have chosen. i reported this to apple more than 2 years ago and they haven't fixed it.