Im gonna be a little pedantic, but the weight has surprisingly small effect on glide range, actually none of the weight affect the range directly, its all from secondary effects.
The glide is given mainly by drag and lift (so body and wing geometry), correlated to certain speed. The weight isnt in the equation at all. What weight does, is increases the speed in which the aircraft achieves this maximum glide ratio, and in higher speed you have higher drag, which finally reduces the range.
Thats why many modern gliders have water tanks in wings, to increase the weight of the glider, moving planes speed of best glide ratio higher, allowing for more efficiency at higher speeds. Its worth it if the atmospheric condition provide strong lifts. Pilot can then dump the water in flight to reduce the wing load, allowing them to land with less speed, or just keep in the air longer as thermals get weaker in the afternoon/evening
(source, I used to be a glider pilot)
But of course that doesn’t mean that airliners can’t glide well, the Gimly Glider and Air Transat flight come to mind. But gliders can definitely beat an airliner in terms of performance.
I am being serious, if you cannot tell.
I rough guessed the cost of fuel over a 737's life as $150 million. Where the engines cost something around $30 million. That pushes the engineering economics towards maximizing the engines efficiency.
I'm suspicious that bypass ratio's for turbofans are close to maxed out. The diameter of the fan gets unwieldy. That was the design issue that the 737 Max was trying to get around. With bad results. Possible the future is hybrid designs with two engines and 4 or more electrically driven fans.
The distinction is less pronounced nowadays, because there is no mondern aircraft designed as gliders-but-not-sailplanes, but historically there were planes that fit this niche, mostly military transport of WW1 and WW2 vintage.
Passenger jets (with engines turned off) are relatively decent gliders, but incapable of soaring. So no, you can't get more that about 20:1 glide ratio no matter how good is the weather (for sailplanes).
(2) I know glider pilots who fly without any fuel at all, once aloft… sounds not unlike the 150-200km glide range that @MaxikCZ mentions at idle from cruising altitude.
[0] https://aeroreport.de/en/good-to-know/how-does-a-turbofan-en...
[1] e.g. https://ciechanow.ski/airfoil/