As always...."It depends".
For example what other lenses do you have that cover the range up to 400mm? You're probably going to want 100,, 200 and 300mm at some times.
Will you be using a tripod? While I'm pretty sure the Canon 400/5.6L is sharper at 400mm than the sigma zoom, it's not stabilized so if you are hand-holding it the images may not be as sharp if your shutter speed drops much below 1/400s.
You also have the two lenses to compare, so you can tell how much image quality you're loosing by using the Sigma zoom. Is the Sigma quality at 400mm good enough for you?
Just looking at it from a theoretical point oif view I'd say that you'd probably get more "keeper" shots with the optically stabilized Sigma zoom, but you might get higher technical quality (but fewer) images from the Canon prime (assuming you have it on a tripod and/or shoot at 1/500s and faster).
If I could take only one of those lenses, I'd probably go for the Sigma because of the versatility. On the other hand if I also had something like a
Canon EF 70-300/4-5.6 IS USM lens with me, I'd take the Canon 400/5.6L