Now, if it lands on a megasquid and starts pecking...well, the brain of a megasquids is located close to its eyes and is not very large. Thus, a Quetzalcoatlus will have to peck
Nevertheless, this battle will most likely take place in a face to face encounter on the ground. Unless the megasquid was near its nest
Thus, I conclude...