About 2 weeks ago I received a strong indication of interest from a different team at my firm, call it team A. The team has said they are very interested in hiring me, but need to work things out with HR and have been "actively trying to make it happen". They have shifted the timeline a little bit here and there but overall have been communicative and seem enthusiastic about making it happen. I verbally committed to them early last week, but also told them that the process can't drag on as I am looking at other opportunities.
During this same time, a process I had been working on externally materialized further. Let's call it team B. Team B would likely pay more, provide better exit opportunities, and would provide certain other perks that seem enticing. I got my foot in the door with Team B through a mutual friend, but the rest has been my effort, interest and performance in interviews. I have a decent shot of landing B as well, albeit the timeline is probably at least 2 more weeks.
If I am being honest with myself I prefer the opportunity with Team B, but it's likely Team A will finalize things for me prior to B being able to. I should emphasize though that the gap between B and A is not massive, but enough to make me pause. Additionally, even if A were to drag on, I had "verbally committed" so in the event B extends an offer I don't see a scenario where A doesn't condemn me (as they are working with HR to make it happen, or so they say). But given how likely A is to materialize I am worried of stringing B along further, especially given a mutual friend put this together.
At a bit of a loss what to do here, at something of a moral crossroads. Appreciate any advice!