When is thermodynamics relevant to ion-induced atomic rearrangements in metals?