The question assumes the omnipotence of God/Ishwara.
It is not clear if Ishwara is omnipotent. In some places, Ishwara admits that He cannot change some things.
sadṛśaṅ cēṣṭatē svasyāḥ prakṛtērjñānavānapi.
prakṛtiṅ yānti bhūtāni nigrahaḥ kiṅ kariṣyati৷৷3.33৷৷
3.33 Even a man of wisdom behaves according to his own nature. Beings follow (their) nature. What can restraint do?
While commenting on this sloka, Sri Adi Shankara says -
tasmāt prakṛtiṅ yānti anugacchanti bhūtāni prāṇinaḥ. nigrahaḥ niṣēdharūpaḥ kiṅ kariṣyati mama vā anyasya vā৷৷
Therefore, bhutani, beings; yanti, follow; (their) prakrtim, nature. Nigrahah kim karisyati, what can restraint do, be it from Me (Krishna) or anybody else?
Here, we find Bhagavan himself admitting that He cannot make people act contrary to their nature. This is an example that probably shows that Ishwara is not omnipotent. (But yes, there are other places where Ishwara is treated as omnipotent).