I'm very sorry to hear about your family member's poor health
It's hard not to resort to comfort eating when stress hits. The logic you used is spot-on though, especially with the analogy to cigarette smoking. Eating well will help you live a long and healthy life. While our loved ones die, we still have to live.