Pilsudski hated Russians more than anything, so in the early days Hitler pictured him as a potential ally to fight Russia. I could imagine even then Hitler promising Poland some spoils if they aligned with Germany.
But Pilsudski never trusted Hitler, and while his successors were more anti-semitic, they also hated the Germans just as much.
But the one thing the probably doomed Poland in the end was the fact that there were so many Jews in the country, could Hitler allow a Polish State to exist that protected so many Jews? It begs the question, what if Poland offered to return Danzig and the Corridor to the Reich, would Hitler have stopped, or would he simply have kept moving the goalposts until virtually Poland had to acquiesce into becoming a Nazi Puppet State, like Slovakia?
What doomed Poland was the Munich Agreements (which Poland supported, I believe). Czechoslovakia with the Sudentenland would need to hit Germany at the same time as Poland in order to have a real fighting chance against the Germans. The Poles didn’t realize that after Czechoslovakia they were next on Hitler’s lunch table.