Most switches work at layer 2 of the OSI model.
Some of the newer ones work at layer 3(vlan).
Store and forward switches build a MAC table to figure out how to forward traffic based on MAC address.
As I pointed out before, when you ping using ICMP packets, this is an OSI layer 3 function of which the switch know nothing about and hence, ignores.
When you have the same 2 MAC addresses on a switch, you use lose the advantage of the software forwarding (layer 2) that is built into the switch.
So what the switch becomes is a hub, which means that it is now broadcasting to all nodes that are connected to that collision domain that have the same MAC address.
You now have the same issues as if it were a dumb hub, which are collisions.