So was following this post: https://discussions.unity.com/t/zwrite-in-shader-graph/752538/23
It looks i have to turn on zWrite , this is how I did it: looks like things are working as expected now.