Not being sad is better.
No estar triste es mejor.
Why it is said like that
What each one does in the sentence.