Is it better to distance myself from group of toxic friends or stand up against them when they bully me?

some people say that it's better to give them cold reply back to them when they mock you but some say it is better to slowly distance them and ignore them....it took me some time to realise I was they are not actually my friends but bullies disguised as friends , they have already drained so much from me , so what should I do