If white plays here, it's also a ko, but then black has a and b as local ko threats. So the first diagram is better for white.
This is another variation. Black tries a kind of "monkey jump on the second line", then White plays the attachment at . Next, descending at is key.