Looking at actual translation at the first one, https://quran.com/al-baqarah/191
"Kill them wherever you come upon them and drive them out of the places from which they have driven you out. For persecution is far worse than killing. And do not fight them at the Sacred Mosque unless they attack you there. If they do so, then fight them—that is the reward of the disbelievers."
If you read the verse before it, https://quran.com/al-baqarah/190, the Quran talks about it in the context of war.
"Fight in the cause of Allah ˹only˺ against those who wage war against you, but do not exceed the limits. Allah does not like transgressors."
The passage clearly says about defending, in the context war. And do it only against the aggressors. And also not to exceed the limits, which means proportionate response.
It makes sense to fight back. Akin to the Ukrainian defending against Russian invasion.