Please help with potty training

Br

My 3 year old pees on the potty fine. She can go by herself, wipe herself, flush, all of it. But REFUSES to go poop. She knows when she has to, she’ll tell me to change her, she is absolutely ready. She says she’s scared and I’ve tried the hole in the diaper but she knew and is very smart for her age. She screams bloody murder and holds it until she’s constipated. She waits until she gets a diaper for bedtime and goes then. I’m at my wits end. I’ve tried stool softener (recommended by ped). I just spent over an hour in the bathroom with her sitting on the potty and nothing. PLEASE help