To hide a payment method based on the shipping options selected by the customer, select the "Shipping method" criteria:
Then insert the name of the shipping method to hide (you can see the name from your checkout page) and click on "Add shipping" button:
Finally click on "Save rule".