Extremal entropy rigidities for Riemannian metric measure spaces