Rubin Science Pipelines of the Gaussian-Aperture and PSF photometry algorithm for consistent galaxy colors