Pomegranate is more tolerant to heat from hot walls than either peach or apricot. You should plant anything there that is heat-tolerant.