Predict which reaction is thermodynamically more favorable at 298 K and 1 atm: (i) 2 K (s) + F₂ (g) → 2 KF (s) or (ii) Mg (s) + Cl₂ (g) → MgCl₂ (s). Justify your answer by comparing the energy required for electron transfer with the lattice stabilization of the product.