Who said it's a bad lens???
Not sure about second image, but I'd say all 1's are the 24-105, as it is quite obvious where you compensated for the distortion.
It's a great all rounder, great walk around ,lens, and If you really need to capture something geometrical, be sure to shoot it at 35mm.
Apart form that, I love it. I find that I mostly shoot on 35 and 70-100mm range, so I'm getting a prime, but 24-105 is a great lens, make no mistake. It's just not an architecture, or a product lens, but a walk around zoom.