It depends on several factors. If all you are using Firebase for is to keep a database of users, then Firebase is definitely the easier route but it comes at monetary cost depending on how many times the data is queried.
using socket.io/express/postgres would be a lot more work to implement but it would be the free route.