If the two identical aeroplanes are flown at a speed/AoA corresponding to L/Dmax then there gliding performance will be the same. The heavier aircraft would need to be flown at a higher IAS to achieve L/Dmax but would glide the same distance....it would just get there quicker.
Chuck.