You can't assume that the number of cars is a constant though. As point A and point B become farther apart, car usage goes up. When they become closer together, car usage scales down.
But as point A and point B become closer together, it takes less time to get there by car and then people do it more often. Unless traffic congestion eats the time savings, implying that there is high traffic congestion.
Cities are populated by people, not cars. As point A and point B become closer, people are less likely to drive.
If your mailbox is attached to your house, you can lean out your front door to get your mail. If your mailbox is at the end of your 20 foot driveway, you take a few steps to get your mail. If you live on a farm, and your mailbox is down a several hundred yard driveway, you might hop in your side-by-side UTV. If your mail goes to a Post Office Box in town, you might hop in your truck and pick it up while running errands.
If things that had been a 10 minute drive become a 5 minute drive, now they're worth it when before they weren't. You go to the shop instead of waiting 2 days for Amazon. You go to the shop you like more instead of the one you like less even though the lesser one is closer, because now the difference isn't as big.
There's a finite number of trips people can practically do - just because they live next door to work doesn't mean they'll commute more than twice each day (close enough people will return for home for lunch perhaps).
As traffic and travel times lessen, people do travel further and more, but only to a point.
But who was contending otherwise? You don't need it to be infinite, to be a problem all it has to do is not allow the reduction in driving because now distances are shorter and sometimes people can walk to not exceed the increase in density because now four times as many people are in the same area. Which it might not have done even without this, depending on how much more often shorter distances cause people to walk.