A)
The best thing about the weekend is “not going” to work. (gerund)
The reason you use a gerund here is you are referring to the verb (go) as a thing (object) and as such you are making the verb “go” function as a noun by adding -ing
If you tried to use “not to go” in this sentence, as in “The best thing about the weekend is not to go to work” there is no thing (noun) that you are referring to.