While canola oil, safflower oil, flaxseed oil and olive oil are considered to be healthy cooking oils, coconut oil, palm oil, vegetable shortening and hard margarine contain high levels of trans fat, and must therefore be avoided. Excess of anything is bad, and this holds true for oily foods as well.