No one should have to deal with a teacher who makes them feel unsafe, but unfortunately, you have not said anything here to explain why you are in danger. You say you don't trust the teacher, but you don't say why.
Your teacher - right or wrong - thinks your behavior changes when you are with these 2 other girls. I don't know what she means by "your kind" or how you interpret that. But usually what teens do is they talk to he counselor, the school psychologist or another administrator to get help.
You say the teacher accused you of being "destructions" to the class. I think auto-correct got the better of you here, but I don't know whether you mean "destructive" or "disruptive." It makes a difference.
The teacher's job is not to make your high school experience a ton of fun. It's to teach you. Your job is to do what's expected and to have as much fun as possible while doing it - that means a balancing act. Expecting it to be "best friends and play time" all day is kind of immature - and maybe the teacher is telling you that you have far more potential than you are living up to. If you walk out and stay pissed off at a teacher, you stop learning.
If your friends arrived late to class because one was sick and the other was helping her, they made a mistake in judgment. A sick student should go to the nurse - and the one helping her should accompany her, and then get a pass back to class from the nurse. A student with a virus or food poisoning shouldn't be going to class - she should go to the nurse and get picked up by a parent. A student who is sick from some other cause (pregnancy, hangover) should be taking better care of herself too, and should at least rest up in the nurse's office. Your friends ignored that basic, common-sense rule. They came to class, didn't like what the teacher said about seeing the office staff (because a teacher shouldn't stop class for 2 kids like that) and you decided to walk out in protest. That shows you can only see one side of the situation - theirs - and you're not mature enough to think of the other 20 kids in the class. They are entitled to an education that isn't disrupted by kids coming in and walking out when they feel like it.
Sounds to me like the teacher has the best interest of all the students at the top of her mind, and she's not going to let 3 besties run the show. If you don't agree, then you set up an appointment with the appropriate administrators and try to show your maturity by understanding all sides. If you walk out of a classroom, you just show you are not mature enough to have a discussion, and that's not going to get you any privileges or leeway from school staff.
No one ever learned anything while talking. So if you're going to stay outraged, then sit down with an experienced staff member, state your position and concerns, and then LISTEN (really listen, without saying "But, but...") and try to be an adult about it to show how reasonable you are. Your legitimate complaints will be dealt with better, and your non-legitimate concerns can be put aside. If you just want to stay outraged and not look for a solution, then I think the teacher is probably right.