Collisions are only concerned with whether the object collision polygons are overlapping. They are not affected by Z order or anything else.
In a fighting game you'd need to apply your own logic to collision events, such as: if colliding and player A is attacking and player B is not blocking, hurt player B; else if player B is attacking and player A is not blocking, hurt player A, etc.