What are these incompatible micro usb type B plugs?
Those photos aren't from your plugs. Both are in the web. The second one is in Wikipedia. You said that have 2 cables, and you described them, but added stock photos?!

MICRO USB male plug always have space for 5 pins. Pin 1 for +5v, pin 2 is Data-, pin 3 is Data+, and 5 is for GND. 

Pin 4 is used in "Host cables", or "OTG Cables" (OTG stands for "on the go"), the OTG cable is used, e.g., to connect a USB drive to a cell phone. The device must support the OTG option. Pin 4 is shunted to ground, sometimes with a resistor.

In most of USB cables the fourth pin is present, but unconnected. Some cables don't have the fourth pin, but there is a gap where it should be its place.

MINI USB has a different plug, also with 5 pins, see the image below.