Raycast hitting odd items

So i have a raycast2D that i use to get the “focused” tile and then I can select the tile when clicking on it; however, I want this interaction to be “blocked” if there is a UI item or some other blocking object occluding the tile.

In my simple set up I have a circle that is in a layer that is included in the layermask for the raycast mentioned above and has a circle collider2D matching its visuals. I have a custom sort axis using (0,1,-0.26) for (X,Y,Z) respectively for the isometric look. But somehow the circle only blocks the raycast in some areas but not in others as shown in the gif… Any reasons why?
raycastissue

You can use this

EventSystem.current.IsPointerOverGameObject()

It returns true if you pointer (cursor) is over a UI object