Microwaving a living animal

Those are the same explanation. The size of the hot spots and the cold spots in a microwave oven are of order of the wavelength, so “small relative to the wavelength” means the same thing as “small enough to fit in a cold spot”. And the sense by which ants avoid the hot spots is probably just by feeling the heat.