Horses for courses I guess - the Sigma isn't as sharp as the 17-40, particularly wide open, but it's much wider, and has far less (read 'hardly any') distortion.
There's always the old issue of getting a sharp copy of the Sigma; that said, good retailers are usually understanding about...