There is no clear answer to this question. Overall, Semrush is the better alternative. If you specifically need link data, Ahrefs has the better database. Keyword research is excellent in both, although Semrush has the edge with the Keyword Magic tool.