When the price delta between a full sized pickup and a compact car is $30k, then the fact that the truck depreciates slower is both true and irrelevant. You're still investing that extra $30k in a depreciating asset. That's not smart money. Smart money goes into appreciating assets like VTI.
If you need that truck for it's capabilities, that's one thing, but this discussion has been only about financial decisions.
Here's the 2021 data on new car purchase prices. Lo and behold, $52,800 for a full sized pickup, $22,400 for a compact car.
Repeat after me, a depreciating asset isn't where smart money puts their cash......