To WWW or not to WWW

The canonical tag has no effect on the scope of cookies whatsoever - it is irrelevant to cookie processing.

Whether your canonical page has www or doesn’t have www does affect the scope of cookies and so does affect whether you should select the www or non-www version as your canonical page.

That you are already redirecting to one or the other is one of the assumptions that precedes the topic being discussed.