White lie

Is it wrong to give a person hope when you know it’s a fabrication? There’s obviously a survival benefit in delusion, or we wouldn’t be susceptible. Surely nuances and good intentions will matter at the gates of heaven.