My take as fellow 3.0 owner (2022 Yukon XL) is to buy the newest model year you can, especially for the LM2 diesels (2021-2024 for the SUVs). The early LM2s do have issues, which I have confirmed after befriending the diesel mechanic at our dealership. Areas to look out for per the tech:
1. Early builds (2020-2021) are prone to oil leaks (rear main)
2. Early build LM2s are starting to come in for timing issues caused by timing chain stretch. This is a massive cab-off job. The tech said GM updated the chains with a new design in 2022 (maybe earlier?)
3. Oil consumption (there is a TSB for this, involves replacing the camshaft housing. Also early builds)
4. Coolant control valve. He has seen both LM2 and LZ0s coming in with this issue, but especially higher mileage LM2.
Per the technician, almost everything involving the LM2s is very labor intensive so he is wary of owning one outside warranty.
With about 70k on our 2022 now, this is what has been replaced that is diesel specific: All replaced under warranty (some of it covered by CPO warranty):
1. NOx sensor
2. DEF sensor recalibration (the gauge was wildly inaccurate when towing. The update has helped somewhat)
3. Oil consumption (heavy consumption for us when towing). We had the oil consumption TSB performed and so far results are excellent. But FYI, this job was billed at 18 hours!
4. EGR valve replacement and EGR cooler replacement due to coolant leaks.
5. Coolant control valve replacement (P1098)
6. Intercooler replacement (massive internal coolant leak)
On the plus side, doing a transmission fluid/filter change is much easier on the diesels. The gassers have a crossover pipe right under the pan. I was intending to keep the Yukon long term.... as we do for all our cars. However, in this case, I will make the decision when we are closer to 100k.