Personal view - if you deprive, you will not succeed and end up over-binging on something you have felt was "bad" later on. Everything is good food, in MODERATION
It's one chocolate, have it and work it into your calories or spend a little more time working out... piece of cake/chocolate, LOL! Enjoy it and savour it... no guilt, just know you can fit it in