The impact of sawteeth on the Ohmic heating and confinement in a tokamak plasma