Both birds are territorial and not shy about pushing others away.
The Great Blue Heron has the advantage here, and uses it.

Even after the Egret moved off the Heron made a big show of landing and being sure the Egret knew he was there.

Click any image for full size display.