It depends on what you want to do with the lens. The optics in the 24-70 are better than the 24-105. Also it gathers a full-stop extra light -- when trying to freeze action that means you can double the shutter speed (or halve the ISO). It does not have image stabilization.
If you want one lens as a standard general-purpose zoom and you don't own a 70-200mm then the 24-105 will probably be better for that use.
I have the 70-200mm and that's the lens that lives on my camera most of the time. I prefer to stand farther away and get the advantages of a longer focal length (compression, depth of field, background blur, etc.) So while tend to not use the focal lengths below 70mm very often. Given that situation... I opted for the 24-70 f/2.8 because when I do need something less than 70mm, it's probably not for general-purpose shooting and I prefer the f/2.8 focal ratio.
Image stabilization isn't as important at lower focal ratios. The lower the focal length, the easier it is to hand-hold a camera at slow shutter speeds and still not have blur caused by camera movement.
But if you do not own a 70-200mm then I suspect you'll prefer the 24-105 range.