I have done both and I can assure you that if you work from home you’re going to get more work.
I don’t know why people hype up the work from home thing. It actually sucks and very lonely.
When you go into the office you actually have human interactions. “Hey, did you catch the game last night”
When you’re home all day, you end up working after hours and can’t turn it off.
When I leave the office, I’m done. Yes, I take my computer home but it rarely ever comes out. When you’re at home, it’s doesn’t get put away.
Yes, you have to drive into work and spend a little money on gas, but the intangible benefits outweigh being all by yourself for hours.