Either the UN partition was legal or the UN partition was not legal. If it was legal, the Palestinian position has a problem. If it was not legal, Israel has a problem. If it was legal, the 2 state solution is the answer.
Israel has done a good job, given the situation, creating a democratic state, establishing its economic base in the face of possessing no oil whatsoever and being located in a harsh land.
The Palestinians have been less successful and have suffered the consequences of poor leadership. It’s a shame. By now, both could have been assisting their own citizens in improving their lives, there has been enough time, money and effort to the Palestinians, but it has been stolen and misappropriated and squandered.