Lymphoid organs are unusual multicellular tissues: they are densely packed, but the lymphocytes trafficking through them are actively moving. We hypothesize that the intriguing ability of lymphocytes to avoid jamming and clogging is in part attributable to the dynamic shape changes that cells undergo when they move. In this work, we test this hypothesis by investigating an idealized system, namely, the flow of self-propelled, oscillating particles passing through a narrow constriction in two dimensions (2D), using numerical simulations. We found that deformation allows particles with these properties to flow through a narrow constriction in conditions when non-deformable particles would not be able to do so. Such a flowing state requires the amplitude and frequency of oscillations to exceed threshold values. Moreover, a resonance leading to the maximum flow rate was found when the oscillation frequency matched the natural frequency of the particle related to its elastic stiffness. To our knowledge, this phenomenon has not been described previously. Our findings could have important implications for understanding and controlling flow in a variety of systems in addition to lymphoid organs, such as granular flows subjected to vibration.