Entanglement minimization in hadronic scattering with pions