Same as with regular perception, you typically don't compare AR and DR when taking a Matrix Perception test. This is what normally grant you Edge while hacking.
But if it is an opposed encounter then Edge might still be granted because of situational reasons or if you have a specific piece of gear or a quality etc.