… heaping sand in a bucket, sprinkling it thoroughly with water, and pressing it out. But by doing this, they couldn’t extract any oil, regardless of whether they made a wish

It’s not wishing for nibbāna that leads there, but rather putting in the intelligent effort required to walk the path.