小の虫を殺して大の虫を助ける(しょうのむしをころしてだいのむしをたすける)

Japanese vocabulary

Meaning: to sacrifice something small in order to save something great; to lose a leg to save one's life; to kill a small bug and help a large one

See it used in real works