The to and from spg_t's are distinct.  get_pgid() by convention is used in the OSD to select the target pg object.