How do you know whether pages compete for the same keyword?

Two pages are not automatically a problem because they appear for the same query. Competition matters when pages serve the same intent, alternate in results, split links and conversions, or prevent the preferred page from ranking consistently. Start with query and page data in Search Console.
Filter one query and compare the landing pages, dates, clicks, impressions, average position, and conversions. Read the pages side by side and identify whether they answer the same task or different stages. Check internal anchor text, titles, canonicals, and sitemap signals that may blur the preferred URL.
Merge and redirect true duplicates, or differentiate pages that serve distinct needs. Update internal links toward the chosen primary page and keep each title focused on its purpose. Measure the change over a meaningful period, because short-term ranking movement alone does not prove cannibalization.