Which of these compounds is more acidic:

HOCl and HOBr

According to electronegativity, it should be HOCl. But according to size, it should be HOBr...

I know the right answer is HOCl from an answer key, but I don't understand why. When do you consult atom size and when do you consult electronegativity when determining acidity?