Thinking about The Infernal Devices from an analytical lens and I have to say... Jem is Will's mirror in more ways than one.
Everyone talks about the color scheme, one light one dark, about how Jem is kind where Will is abrasive, etc etc, but more importantly--- without even the illusion of being cursed Jem does pretty much exactly what Will does.
There is a wall between Jem and the rest of society. He is kind to Charlotte and rarely teases Henry, but the London Shadowhunters discuss him as this distant tragedy. The poor foreign boy who is weak enough to die of a drug addiction. They don't know him.
Nobody knows him, except maybe for Will.
Just as Will is hellbent on keeping people from loving him, Jem refuses to make deeper connections with people because he will die anyway. He is just as lonely as Will, hell, in some ways Jem has even less... because Will befriends people, has connections with them, even if he is purposefully an ass about it to uphold their distance.
But Jem has truly only allowed Will to get close to his heart.
It's not that Jem thinks that people don't like him, but by being kind and affable and quiet about his suffering he's trying to slip from their hearts and memories quietly. Where Will is loud and abrasive, Jem's subtle and accompanied by a smile.
It's the exact same thing Will does.
Of course, Jem is loved. Of course, his death will hurt those around him.
All he's achieved is that he's as lonely as Will is. As desperate for a way out.
That's why they BOTH need Tessa in the end. Someone who sees them, someone who forces them out of their protective shells and back out into the world. It is no coincidence that Jem becomes reckless and selfish in his love for Tessa - she is forcing him to be memorable. To be a person and not just a boy dying quietly.
Sophie (and later Will) note that they hadn't known Jem could laugh like that. Be loud like that. Love like that. Because, well, just as Will denied himself his feelings, Jem did too.
The tragedy is just that Will's desperation allows him to break his curse, and Jem's need for being alive is what kills him faster - and then denies him his feelings wholesale.