Hermione could have denied it, proven to him that his pain could be alleviated if he just bothered to face it. She realized, however, that those words wouldn't have any effect on him. Malfoy had decided to suffer. He wanted to punish himself. Nothing would have distracted him from that intention. She could only try to make him aware of it.