If you are building a gaming PC then there is no difference. I would go with the B350 motherboard.
If you are planning OCing there are more settings you can tweak on the x370 (e.g.Vcore), but if you know what to do you get almost the same results on both.
Which CPU are you getting?
With 2nd gen Ryzen, go with B450 or X470