Both of you are absolutely correct ... unless
1. Your financial circumstances change over the life of the loan. How many repo business exist because people lost their job? How many have lost their job due to Covid? How many more will lose it due to vaccine mandates? Regardless of where you stand on these issues, there is nothing that says you will keep earning tomorrow what you earn today.
2. Do you really take out a loan and put the money you would have paid for the truck into a financial instrument? Most don't. It's just a hypothetical argument that doesn't yield results. You also run the risk of loosing that money in a stock, and the rate of return on bonds is lower than your loan and it takes longer to mature. Money market instruments are better, but over the life of the loan the difference you might gain isn't worth the headaches, if you even follow through and do it.
3. Your truck is going to depreciate whether you buy it outright or get the loan. Getting the loan is worse because you ended up paying the added interest and it still depreciated while you paid off the loan. If you have the money to buy it outright, why would you ever pay to use someone else's money while the asset you buy is loosing value? You get burned twice.
4. Sound long term investments like property are valuable and I recommend them, but having your money tied up in them and a loan for your vehicle is counter productive. You likely don't have just the money diverted from your truck into that property, you have a mortgage for the property and a loan on the truck. Now you have two loans you have to pay off at the same time. Better to pay for the truck and save for a property over time and buy both of them with cash. Over time you can get better and better properties turning smaller ones for bigger ones and all the time paying cash. It works.