While that was definitely a good video to display just what the superduke is capable of, you can easily tell that the reason why it was even that close is because of the ktm riders ability to brake later. Whether that is the confidence/skill of the rider himself or just better brakes on the ktm is anyones guess but if the same rider was riding each of the bikes, I don't think it would have been that close. Even if it was, the bmw would still finish out in front.
Regardless though, very impressive for the duke!