Temperature is a measure of the average kinetic energy of molecules present in a substance, whereas thermal energy is the total internal energy of the molecules present in the system.
An object's thermal energy is dependent on its mass and temperature. Greater the mass, more will the thermal energy at the same temperature. Greater the temperature, more the thermal energy of the object of same mass.
Thermal energy is transferred from a hot to a cold body. It is not always correct that two bodies with different amounts of thermal energy have different temperatures as it also depends on size or mass of the object.
Hence, the correct option will be B. Temperature is one factor that determines the thermal energy of an object.