Definitely ninjas, on land or water. It wouldn't matter, the ninjas would win.

How about Ninjas vs. Samurai? I pick samurai there..

which leads to the conclusion that Samurais can also beat pirates




Samurais > Ninjas > Pirates