Although it may come down to the individual, ninja are generally better than Samurai. (Mostly) the ninja have their ninjutsu and gentjutsu, while the samurai just afflict their swords with chakra, which, as powerful as that is, can be topped by a decently trained ninja.