In the middle game I would take the pieces unless I had strong open files against my opponents king I could dominate with the rook. In an endgame I would choose the rook hands down against N+B or N+N, B+B on the other hand would be preferable to a rook. Simply Knights suck in the endgame, and are not very useful in open positions where rooks and bishops dominate.