The two faces of scalar curvature