EDR is generally a complement to antivirus and firewall solutions, not a replacement for them, because EDR and firewall/AV have different core functionality. Basically, firewalls and antivirus are there to keep threats out of the network, whereas EDR is there to fend off threats that have already gained access to the network. Some EDR solutions also include antivirus functionality, which remains an effective measure against known threats.