All of the pages listed in your sitemap should show Google that your site is high-quality and well-maintained.
That means you should leave out some pages. Such as:
- Pages with 3xx, 4xx, or 5xx status codes
- Orphaned pages
- Duplicate pages
- Pages that aren’t the canonical version
- Pages with a “noindex” robots tag
- Pages blocked in your robots.txt file