I want to know what is the difference between PHY and MAC chip
A PHY chip or layer converts data between a "clean" clocked digital form which is only suitable for very-short-distance (i.e. inches) communication, and an analogue form which is suitable for longer range transmission. It has no particular clue as to what any of the bits "mean", nor how they should be interpreted or assembled. The MAC chip or layer receives bits from the PHY, detects packet boundaries, assembles bits into packets, and validates them. It also takes packets of data that are loaded into it and converts them to streams of bits which are fed to the PHY. Typically, a MAC will include some logic to delay transmissions until the line is clear, and retry transmissions which are interrupted by collisions, but it will not include logic to listen for acknowledgments nor retry packets which are not garbled by collisions but aren't acknowledged either.
PHY chips handle the physical layer (Layer 1 of the OSI model), while MAC chips handle the data link layer (Layer 2 of the OSI model).
PHY is Physical layer transceiver which connects to the copper interface of the Ethernet like BCM5461 and MAC is Media Access Control which will control the transfer of data from PHY, mostly MAC cores are inbuilt in Processors or Controllers as SoC. Other options with built-in MAC and PHY is CP2200 which will directly connect to the address and data interface MCU or Processor.