Unless the ochre jely is specifically resistant or immune to fire, a flaming sword shoudl do full flaming-only damage to the ochre jelly.
Your best bet is, instead of SWINGING the sword at the jelly ... just HOLD it against it ... IOW, strike with the FLAT of the blade, for ONLY the fire damage.