To reproduce, shoot an enderman and two zombies (in that specific order) with a single arrow, shot by a crossbow with piercing I. The arrow will not pierce through the first zombie or damage the second one because the enderman was already "pierced" by the arrow.
Can confirm in 20w51a.