How to prioritize WiFi networks on iPhone
To ensure that your iPhone does not connect to the slower network, go to Settings > WiFi > tap on the blue arrow to the right of the slow network > tap on "Forget this Network"

Next, make sure you connect to the faster network. This way, your iPhone will connect to the fast network and not to the other each time the fast network is in range.