I'm not an accountant but death gratuity is paid to your next of kin when you die while still working while pension is simply a retirement benefit. If you are a civil servant, the HR department in your ministry is the best suited to answer this question.