You could cut it flush, and then cement in plugs.
BUT, why would you want to do this? Basement rough plumbing is valuable for resale. If it were me, I'd focus on ways to camoflage/hide/build around the stubs. Cutting them flush will make it harder to adapt later without doing some concrete work.