Generally, palm rejection should work in any scenario.
Yet, in case you are facing the issue, please report the issue with details about the Apple Pencil, stylus, or method you are using on which iPad model to draw. A video demonstrating the issue will be best.