Screams of horror could be heard as a man killed his friend at their home in Wales on Christmas Eve, a court has heard.