Cogs are usually a lot cheaper than chainrings, so replacing those is the way to go. As for links vs position in the dropouts, it's really a whichever you want. If I can get between cogs by sliding it back in the dropouts I do that, just because it saves a few minutes over breaking the chain and getting my fingers all dirty.