When calculating the after repair value (ARV) I would only look at comps that sold within the past 6 months, no more than .5 miles away, and within 1000ft^2 of the same size. If it is in a higher end subdivision I would make sure my comps were in the same one or another that was close and similar in quality. If you have several to choose from I would try to match up ones based on proximity, rehab expense, beds/baths, garages, and lot size in that order.
In addition, there shouldn’t be any active competition cheaper in the immediate area that is comparable without a very good reason, ie: they are smaller in size, need extensive rehab, already under contract, etc.