We have to consider even the verses 20:80-81 which says:
20:80 "O Children of Israel! We saved you from your enemy, and made an appointment with you on the right side of Mount Ṭûr, and sent down to you manna and quails,"
20:81 "Use from the pure things We have provided for you(kulū min ṭayyibāti mā razaqnākum), but do not transgress in them, or My wrath will befall you. And whoever My wrath befalls is certainly doomed."
We see again the same condition stated in 5:5 and in 20:81 and that is to use what is pure.
well God never said PURE by word TAIB... it is simply good...
Eat what is HALAL/PERMITTED and good... Permitted is compulsory and good is personal option/choice and being wise...
Would you give someone what is waste in your kitchen for them to consume.. Would you eat something which is not conducive to your body.. for example Red meat or Pineapple for some people it is allergic so it is not good for them.. but halal... would you eat the meat of snake or crocodile just coz they are halal.. it is not good in our eyes.. but God has not made them haram... Would you eat the flesh of Horses and Elephant just coz they are not made haram.. Not they are simply not the choice...
BTW Pure has a total different meaning not like Good.. big difference between pure and good..
note the below verse
:2:267 O you who have believed, spend from the
good things which you have earned and from that which We have produced for you from the earth. And do not aim toward the
bad therefrom, spending [from that] while you would not take it [yourself] except with closed eyes. And know that Allah is Free of need and Praiseworthy.
Thaib and Khabeez = good and bad
God says to spend good things, but we may have things which are bad also but it is not befitting to spend from bad .. it is not worthy in the eyes of God.. but you may use for yourself rather than wasting.. but for giving good things not bad things from what you have..
similarly,, eat what is good and not everything is good to eat though they are not made haram.. but situations may make them eat..