The famous story about Hillel's devotion to Torah learning in Yoma 25b tells that Hillel endangered his life by trying to listen to Shmayah and Avtalyon in extremely cold weather until he fell unconscious. When they found him in the morning under 5 feet of snow:
פרקוהו והרחיצוהו וסיכוהו והושיבוהו כנגד המדורה אמרו...
ראוי זה לחלל עליו את השבתThey extricated him from the snow, and they washed him and smeared oil on him, and they sat him opposite the bonfire to warm him. They said: This man is worthy for us to desecrate Shabbat for him.
Sefaria's WD comment: Saving a life overrides Shabbat in any case; however, this great man is especially deserving.
I understand from that wording (assuming they actually uttered it) that for them not every Jew was worth of saving on Shabbos.
When learning Hilchos Shabbos (Shus OC 328-330) I don't recall any discussion of who's worth or not be saved on Shabbos. Is it a Machlokes ever since? Who (besides them) holds the opinion that some Jews are not worthy of being saved?