Mental health "lies at the centre" of the trial of a man accused of murdering his "best friend" on Christmas Eve, his defence lawyer has claimed.