Why would she attack Kaguya? All that would come out of it is her death, a ninja must know there limits, unlike Hinata who rushed in to attack Pain and what ends up happening? Pain killed her. If you ask me the best thing Sakura can do right now is just stay out of the way and do what a medical ninja does best.