Comparison between overlap and twisted mass fermions towards the chiral limit