I can really concentrate at home (private room where I feel comfy) but on the other hand it is also significantly easier to distract yourself from work. Netflix is just one tab away and there's no one to look over your shoulder and whisper in your ear "Don't watch Netflix when you're working".
It also depends a lot on my mood. When I feel down and worthless because my research feels like its going nowhere I distract myself more easily. If I feel optimistic like I'm a predator hunting some prey because my research is leading somewhere fruitful I can work anywhere with great focus without the need for distraction.