In real life, the potential value of a stock grant is not something I have any control over, so I disregard it. Recruiters want to offer me "total compensation" consisting of this and that and the other, but all I hear is "salary", because that's the number I can count on when making other life decisions.
If the stock ends up being worth something, it's always nice to get a bonus! But if the company never goes public, or the market crashes, or some weird merger happens, or I end up moving on before the RSUs vest, or whatever - then I can shrug off the imaginary loss, so long as I never count on the stock as if it were income.
In that case, valuing the stock is very important because the TC difference between companies depends on it. This is also talking about stock which is liquid when it vests (E.g. public companies).
I got fired once, shortly before my first round of RSUs vested; that left an impression. None of my examples were hypothetical, actually; another time I watched the value of my stock rise, rise, rise - right up to instant-retirement, fuck-you-money level - then crash back down, before any of it vested, and stay there. Total compensation at that job ended up being total salary. Both of these companies were publicly traded.
In reality, if both of the hypothetical employers in your scenario offered a reasonable salary, I'd go for whichever had more interesting work, friendlier people, a shorter commute - whatever would make my life better. If somehow, inexplicably, I felt thoroughly inspired by both options, happy to go work in either place, and it really did come down to nothing more than the money - I'd still probably pick higher salary over higher TC. Unless it was, like, double, and then I'd be tempted. But I don't think I'm going to get any such offer.
Your coffee shop also won't accept the cash in your bank account. You have to transfer it to them somehow. There's very little different between that and selling shares, followed by a payment.
You might but the IRS doesn't since RSUs show up in your W-2.