India has a policy of not using nuclear weapons against Pakistan, but follows a 'No First Use' policy with China. This is because Pakistan lacks the capability to launch a nuclear strike on India, whereas China does.
Pakistan's stated policy is to use nuclear weapons on its own territory if it is captured by India during a conflict. Their nuclear weapons are not intended for use directly against India.
Like Pakistan, Bangladesh could also acquire nuclear weapons, but this would not provide any nuclear deterrence against India. deterrence requires the capability to deliver nuclear weapons in a way that can penetrate India’s advanced air defense systems. Similarly, giving nuclear weapons to Hamas would not offer any deterrence against Israel, as their rockets cannot evade Israel’s Iron Dome or other air defense systems. Moreover, Israel would likely neutralize any nuclear installations controlled by Hamas.