Ideally, as I wrote, KSA (Arabs as a whole) should not depend on outsiders in this regard and pursue nukes on their own as Pakistan did. Even if it would take many sacrifices. However having Pakistan as a partner and ally is the second best option in this regard.
In any case, the history of the region would have been much different had the region had nuclear proliferation decades ago. In particular from the Arab perspective (many past attempts in Iraq, Syria, Libya and even rumors of Egypt). For various reasons (main ones being Israel and the US/West) this was foiled.
However IMO in the future, we will likely see nuclear proliferation occurring across the board (globally) and AI will also change warfare and the world as we know it completely.
Luckily KSA is at the forefront (globally) when it comes to AI and investments in it.
But at the end of the day any talk of defeating Israel, liberating Palestine is a pipedream when your opponent (Israel) has a nuclear triad and you don't.
Imagine If Pakistan failed to develop nuclear weapons and if it had to face India without the nuclear security? It would likely have been really bleak.