Baby spit up with breast milk

I’m thinking about switching baby to formula because she’s constantly spitting up the breast milk. I’m pretty sure she’s allergic to it and my son was formula fed and never had this issue.

I’m sure it’s messing up her esophagus too