Modules tend to be less expensive than integrated devices and offer better electrostatic discharge (ESD) protection. RJ45 connectors with integrated magnetics offer better EMI shielding and more reliable connections. Both strategies have advantages and disadvantages, but magnetics must be considered if you are adding wired Ethernet into a design because they are part of the Ethernet specification for 10/100/1000 Base-T networks.