Praying Taraweeh (nafil/voluntary prayer) at home is better if you can. Simply because it was practice of Prophet s.a.w and also of people like Umar R.A.
"Al-Bukhaari (2010) narrated from ‘Abd ar-Rahmaan ibn ‘Abd al-Qaari’ that he said: I went out with ‘Umar ibn al-Khattaab (may Allah be pleased with him) one night in Ramadan to the mosque, where we saw the people in scattered groups, one man praying by himself, and another man praying with a group of people following his prayer. ‘Umar said: I think that if I unite these people behind one reciter, it will be better. Then he decided to do that, so he united them behind Ubayy ibn Ka‘b. "
Notice how Umar r.a is the one who tells them to pray under one imam yet he is not the one leading them or praying with them. For fard (obligatory) prayers we know he used to lead them, he even was murdered while leading the Fajr prayer. So Nawafil (voluntary) prayers are encouraged to be done at home.
wallahu aalam.