Toddler Scratching Others

So I take my 2 year old to a mommy and me gym class and toward the end of class she saw a mom sitting down and my toddler just started to squeeze her face and left a scratch mark on her. I immediately grabbed her and apologized to the mom and she seemed sorta upset (didn’t talk to me when I tried apologizing). I took my toddler out of the class and I disciplined her while the class was finishing up. The teacher was apologizing to the mom (it was her first day in class) and saying that is a new thing and whatnot. I immediately walked over to the mom again and apologized and told her my daughter doesn’t normally do stuff like that. She still seemed upset but said it was okay. I’m just soooo embarrassed 😞 I’m sure the other moms look at me and my toddler like we’re crazy. One mom was giving the new mom advice on how to care for her scratch (mind you this mom has never spoken a word to me). Anyways, I just needed somewhere to rant and maybe get some advice on how to handle the situation better? Idk I feel embarrassed, my daughter doesn’t normally do stuff like this so it was out of the blue. My husband said he will sit her down when he gets home. Ughgghh😫 what would you guys do???