A tenant can leave before the end of the section 21 notice depending on the stage of their tenancy. They can always negotiate directly with the landlord.