during most of this time , islam had the upper hand politically , a fact that had enormous consequences for hinduism and that presented challenges for both hinduism and islam which continue to this day .