I'll take a long, traffic-free commute over a shorter, traffic-filled commute every time.
I used to live 5 miles from my office but it was in a heavy area...if I left the office at the wrong time, it could take 45 minutes (I should have walked or biked, oh well). I currently have a 45 mile commute each way, but I come in early and leave early enough to avoid traffic as much as possible, so the time tends to be about an hour each way.
My commutes have been 0 (wfh), 3, 5, 35, and 45 miles. I don't mind my 45 mile commute really, I rather enjoy the alone time. As long as there's no traffic.