If you put on a pair of shoes and your feet hurt as a result, the problem could be one of two things.
It might be that that shoes are too small or are poorly made. In that case, get different shoes.
But you may experience podiatric pain because the foot is deformed — with bunions, corns, blisters, extra toes. In that case, getting rid of the shoe does not help; the next one will hurt just the same.
The foot must be reformed before any shoe will fit comfortably. This means scraping corns, resetting crooked toes, lancing boils.
This means pain, but ultimately all shoes fit better and the foot is healthier.