What canonicals actually do
A canonical is a hint to search engines (not a directive) that says 'this URL is the preferred version of this content.' Google treats it as a strong signal but reserves the right to choose a different canonical if other signals (internal linking, sitemaps, redirects, hreflang) point elsewhere. The page you canonical is still crawled but typically not indexed as a separate result.
When canonicals work as intended, ranking signals from all the duplicate URLs flow to the canonical, which then ranks instead of any individual duplicate.