I agree. I know that I do this myself. I’ll try not to eat chocolate...then I end up eating the chocolate cake, which has the added detrimental quality of all the bad carbs.
It’s not the chocolate that is bad for you, it’s the way it is processed and everything added to it. They call that the “Dutching” Chocolate.