Tuning magnetic order with geometry: Thermalization and defects in two-dimensional artificial spin ices