Depend on the value you get out of each activity I guess. Your question is vague and you will get vague answer. It depends on what you prioritize as value. To me immediate need is like going to bathroom or drinking water and maybe work that i haven't finished and due date is coming and someone is waiting for my work immediately. For me I will do them first. To me going to bathroom when my body needs is important priority than some other long term project i want to do. I dont know what other “immediate needs” that can be lower priority. What are your low priority immediate need?
I make sure that my goals are in line with each other. My short term goal should lead me to my long term goals through time.