I am working in Magento 2 which has all sorts of difficulties.
My product page is example.com/testproduct the canonical is the same.
But in the sitemap it is example.com/testproduct/
In a perfect world I would get rid of the trailing slash but can't because of this issue- https://magento.stackexchange.com/questions/205337/unique-constraint-violation-found-when-remove-suffix-html-magento-2-2-0
The trailing slash will 301 redirect properly.
Is it an issue having the sitemap urls different with the trailing slash?