Whatever you do decide, do NOT just give the poor dog away. Take her to a reputable rescue centre to get her re-homed. Unless of course you have good friends that you trust to take good care of her.
Of course dogs and babies mix, it is up to you to keep up the hygiene.
So many people have dogs until they start to have children then out goes the poor dog. You obviously care about her, but you must do what is right for her. There is no reason why the dog cannot carry on perfectly well around a child.
But you are the one that has to take all the responsibliity. If you cannot cope with the clean ups then let her go to someone who can.
Children are far more demanding than dogs and you could have a situation where the poor dog is no longer part of the family. In that case, you must let her go.
Personally, if I had to choose,I would keep the dog and have the kid adopted. But that is me.