Both are excellent, though more suited for different jobs or users. There are projects which use both working together.
RasPi is a general purpose computer with more programming options and environments - with all the complexity and overhead. It suits people like me who are high-level programmers and don't mind spending a bit more money for the ease and familiarity of a PC environment.
Arduino is more suited to performing specific tasks most efficiently.