This is exactly where my conundrum in answering this one is.
I'm good at math, good enough to know even if I invested in a moderately conservative portfolio I could beat 4% a year. Meaning it would be more profitable to invest and keep paying the mortgage as slow as one could. Same with the car payment as long as it's also at a lower interest rate than one could make in investment. Right now just dropping money into a stable coin (DAI) and dropping that on AAVE is yielding over 9%.
The "human side" of the equation for me though is that I was raised by post depression/WWII era Americans (my grandparents). To say my grandfather didn't trust banks would be like saying bears occasionally shit in the woods, and the pope is sometimes catholic. It galled him to no end to have had to take a mortgage out to buy a house when he moved the family to the city in the 50's (and it was fully paid off before I was born in the late 60's). He NEVER had a car loan (cars are something you save up and buy in cash...) We had ONE single credit card in the family while I was growing up. It was a Sears card, and it was used essentially for two things. To buy my school clothes once a year (since it was easy to use over the phone ordering from the Sears catalog) , and if a major appliance needed replacing. For a decade after he died I was STILL finding money stashed away and hidden in the house I was raised in. The only thing he thought the bank was good for was putting money into CDs which is how he gave me "College or get yourself started" money when I graduated high school.
That part of me would scream to eliminate any and all debt.
In this scenario for me, paying off car would just mean that amount would then go monthly into the portfolio. Paying off my mortgage wouldn't eliminate that all together, it would still mean round half what my current mortgage payment would be would be for "escrow" (Insurance and Taxes) and ergo I'd want to save away anyways (probably dropping into the aforementioned DAI stablecoin yielding account).