Flores does not mandate that
a) every arrival be prosecuted instead of just deported (or even any arrival)
b) Trump end community detention programs for immigrant families, which were very successful and far cheaper than prison under Obama
So no, there are no laws mandating this. People like you are choosing to do it because they think it will deter people from arriving here. That's not a legal mandate, it's a moral choice.