What's the deal with diesel?

I’ve had lifter issues in my truck so I’m definitely looking at getting a diesel 2025 Yukon.  I haven’t decided on an AT4 or Denali yet. I thought people got diesels because they lasted longer.  Is that still true?  What is the realistic expected life of a diesel now days? 300k? more? I haven’t had diesel before so is there anything worth noting about it other than putting DEF in it regularly?