Of course, the relation of density is that the porcelain itself has a high density, a high barrier to water absorption and heat dissipation. In addition, the surface of the porcelain is glazed. This further preserves the original temperature of the water while the glass products are made and processed. The simple glass material itself has lower density and faster heat conduction, so the heat dissipation of the porcelain cup will be slower.
Glass and ceramics are the same quality.
Personally, glasses are better because they are more stable and less susceptible to physical and chemical reactions with other substances. Glass is also easy to clean, bacteria and dirt do not easily breed in the cup wall, so drinking glass water is healthier and safer.