My understanding is that if they find you ineligible before they start processing, you will get refunded.
Processing is the stage where they have already determined that you have enough points, eligible under ministerial criteria, etc and now doing background, medical and security check.