Simultaneous dense and nondense orbits for commuting maps