It can be hard to work in a depressive episode as I know from experience. I hope you can figure out what's best for you.
I avoid my parents too. Even if I'm in a good mood, they can find a way to ruin it. I have to distance myself for my own mental health.