The 2023 one would be nice to get as its got the updated block and bottom end. Its the Turbomax spec L3B. Same RPO code "K", GM never changed it.
I see a couple issues.
1st issue that I see is if you got a new engine from GM, there is an updated ECM calibration required for a new crate that services 2020-2022 non Turbomax/HO engines. What it does, I have no idea. I do believe the new replacement engines are also of the Turbomax spec but don't change to that tune spec.
2nd, 2023 is GM Global B computer platform, so if any changes were made to the connectors or sensors, those won't compute to your truck which is Global A.
The other thing on that 2023 is there is a ground strap that is on the 2020-2022 engine that is not present on the 2023-up engine.
So ideally, you'll want the right engine to be safe.