Of course it didn’t work, Vergo had incredibly strong Haki and Law had to use his strongest attack to kill him. Vergo didn’t choose to take it head on, he wasn’t that fast and the attack covered an enormous area.
Again, saying his other attacks didn’t do damage just proves my point that Law oneshotted him. If I miss Earthquake and then hit you with Horn Drill you still got OHKO’d.