Bhagavad Gita, Chapter 8, Verse 7
Therefore, at all times, constantly remember Me, and fight. With mind and intellect absorbed in Me, you shall doubtless come to Me.
Remembering and doing aren't in competition. They're meant to go together.
Krishna applies the principle he just explained to Arjuna's immediate situation. Devotion and duty aren't offered as a choice between two things, they're something to hold together at the same time.