I have a completely unrelated issue: since switching to a new iPhone, only my iPhone occasionally can't access anything on Wi-Fi.
All my other devices, including a MacBook and iPad connected to the same network work fine. My previous iPhone also worked just fine, it's just the new phone.
I know how annoying these can become, and glad to hear that you could pinpoint it down.