If you are smart money you might buy at resistance since you have the power to break it. Also, a report might come out for example that the company is being bought out, so you could buy at resistance.
However, if you are doing technical analysis, you could buy a break of resistance but...