In case the situation is favourable and in case there are no external barriers...
In case the situation is favourable and in case there are no external barriers, man carries out the appropriate deed. But if there are various desires and if all of them cannot be satisfied at once, they will naturally clash with one another.
Whichever has greater attraction will draw attention to itself and will reach fulfillment, as some children prefer to play rather than to eat, as a hungry mother gives her food to her child, as a student prefers studying, as a devout man prefers to engage in worship rather than to sleep and as a combatant soldier prefers sacrifice in the way of Allah (SWT) to the comfort of himself and his family. In such cases, the value of man will become evident and his dormant aptitudes will flourish.
And (either) prosperity or adversity will reach materialization. Principally this is the philosophy of the creation of man in a world of clashes and conflicts as repeatedly pointed out.
Now the question arises as to whether man should be an observer of the clash of desires and to pursue a desire when it becomes dominant due to natural or social factors or should assume a decisive and determining role with his mental and voluntary activities and even at times, abstain from satisfying his powerful natural demands? In the first case, man will submit to blind instincts and will be like a straw at the mercy of storm or flood.
In fact, he will give up humanity and in other words, he will render meaningless the special human faculties.
As this question embraces religion itself, it must be answered irrespective of means that are taken for granted. This question could be answered in three forms: Firstly, on the basis of the innate desire to prefer what is most enjoyable, one would evaluate the affairs in relation to the pleasure they provide. When the affairs clash, one would choose the most pleasurable one.
Of course in this evaluation, one must not set an instantaneous pleasure as a criterion because an affair with instantaneous pleasure might bring about great sufferings in the future.