Apple shares have risen 27% this year as investors seek exposure to Big Tech without the heavy AI infrastructure spending weighing on rivals.