Websites that have perfect SEO don't always rank. Websites with poor SEO and excellent content can rank very well. Websites with both great content and a well implemented SEO will likely win. Therefore the order of prioritization is the content made for users and then make edits to existing content, slight adjustments, to optimize the website for search engines.
SEO is a complicated topic that even Enterprise companies will hire SEO consultants to help. The engine changes from time to time and so does the competitive landscape. This is enough to make it a field that most companies will rely on external help to level up their game.
Refer to our
Site Audits Service to see the options of evaluating your website's quality for SEO.