In both cases, the reaction force on the solid device caused by the sucking in of the fluid is balanced by the fluid impinging on the inside of the device.
The force generated by the fluid sucking into the device is balanced by the fluid's impact against the inside surface of the device in both cases.