Oof, that's rough! What was the specific fault the scanner flagged that you'd been chasing blindly? I've definitely been there, convinced it was a bad relay only to find out it was a sensor reading WAY out of range. How many hours did you sink into it before caving? The modern stuff is just IMPOSSIBLE without proper tools, right? Like, did you have a moment of pure defeat when the code finally popped up?
Modern electronics will absolutely humble you every single time. That scanner probably flagged something ridiculously simple like a throttle position sensor reading 0% at full throttle, or a wheel speed sensor dropping out at 3 mph. Spent probably four hours swapping known-good parts from another truck before the defeat washed over me. The real lesson is always check the damn basics first, even when you're sure it's something complicated.