I'm using both of them and they are useful to me.
Listen bro! in most cases, Ahrefs gives me the solution of backlink research as the amount of data. On the other side, Google Analytics is one of the most popular tracking software out there. It gives you a lot of useful insights that can help you better understand your audience/customers.
You can see the features of them making a clear idea. https://www.getapp.com/business-intelligence-analytics-software/a/google-analytics/compare/ahrefs/