Yes, I do know a car that does exactly that, my Kia Niro PHEV!!!!! I cannot lock the car using the button on the door handle when the key is inside, it beeps at me incessantly until I realise what the problem is. Not only that but even someone with the second key in their pocket can't lock the car under those circumstances.You're asking for the car to know the difference between the fob being inside the car and the fob being in your pocket when stood beside your car.
However if you leave one fob in the car, you can lock the car using the button on the second fob, which I suppose explains why you can also do it via the Uvo app (which my car doesn't have).
I've also had 2 other cars with keyless entry before my Niro, both Nissans, and they were exactly the same.