Dented food cans are okay to eat food from as long as the dented food can has no severe rust or holes in the can.
If the dented food can has any severe rust or holes from the denting then the food could be bad and the food should be thrown out.
I have bought dented food cans before from discount stores and there was nothing wrong with the food in the cans.
We have a discount grocery store here that sells food that has dented cans and other food that is expiring but the food is still good.
I save a lot of money buying food in dented cans.
I've also dropped cans and dented the food cans myself and there's nothing wrong with the food in them.
Food in cans can last for a long time before it goes bad.