How the site ranks in search engines will depend primarily on the quality of the content. The choice of domain extension will make no difference.
If you choose a .co.uk domain, Google will automatically assume your target audience is UK. If you choose a non-country-specific domain, you have the opportunity to set your geographical target in Google Search Console (what used to be Webmaster Tools).