Diesel BMW owners: Is the N57 a better engine than the latest M57?

I heard from quite a few people that the 3.0 N57 has a lot of issues in terms of reliability, however google searches lead to people saying the N57 is better than the 3.0 M57.

The M57 in my opinion is one of the best engines BMW has ever made being both very good performing and very reliable.

So is the N57 better than the M57 ?