First, pay off the cars.
Second, people instructing you to keep the mortgage and invest the difference, assume you can return greater than 2.875% but this might not happen.
The point is future investment returns are not guaranteed, despite people speaking as if they are assured. Investing also takes a lot of work. It is surprising hard to do well.
Paying off your mortgage (in whole or in part) does guarantee you do not have to pay 2.875% interest. Not having a mortgage over your head has intangible value; the feeling of not being in debt a hundred thousand dollars is liberating and, for me, worth more than making some (likely small) investment return.
You are asking a question of how to allocate your assets and liabilities. The "proper" answer is you need to figure out what makes you and your wife comfortable.
Figure out how much mortgage debt, cash, liquid investments makes you comfortable.