Long term ownership now that Titans are discontinued

Been on the search for a replacement truck to my rusty F150 and I’ve been looking into used Titan XDs. Cummins or gas really open to either. Cummins would be DT if I get one. It’s enough truck for me without having to go up to a 3/4-1 ton.

My only concern is parts availability now that Nissan pulled the plug in Titans. I don’t mind having to buy dealer parts(don’t like aftermarket parts due to inconsistent quality anyways) but with them being discontinued I’m sure they’ll stop making parts for them once the last 2024 Titan warranty is up. I know you can always get used parts but they really didn’t sell that many Titan/XDs so unlikely the pick n pull will have much.

I don’t want to buy another truck for a long time so I want something I can keep on the road regardless of what it needs. Am I just thinking too much about it? Does it still make sense to buy one in the long run? Want to keep it for 12 years looking at 2018+ Titan XD