If you are going to lose a war after invading the enemy, simply give the cities away to aggressive civs - a simple buffer zone against which your enemy cannot advance. Or, deliberately capture an eney city, then give it to another enemy, or several, or build several cities where you know you shouldn't, and give them away.... the possibilities are endless.