I was just wondering about the canonical URL format. I see many sites use www.domain.com so if you type domain.com then it will revert back to www.domain.com (which helps in avoiding duplicate content).
So the gurus here, please explain me about the benefit of www based canonical URL vs the non-www based.
Which one should be used and why?