Also in 2021 team and 2024 team, there is not too much differentiate while the team leader is also the same so hope for the best. In simple and easy words, the previous time was different and the current time is different, if you see 2022, then at that time, if Virat Kohli haven't hit two sixes then Pakistan just won that.
As you said in ODIs and Test Cricket, the Pakistan team is stronger but in reality the Pakistan team also has not good result there. Yes, I agree the Pakistan is very amazing team for the Test but not for ODI against India.
The Pakistan team is playing awesome where they have to play well like we can use for example CT 2017, when the Pakistan team have no hope but played well there after playing poorly in the whole tournament. Also, Pakistan B team in Emerging Asia Cup 2023, when they also gave defeat to India in final which was also ODI. I am just saying that Pakistan has no good record, but when there is a must-win for them to do their best, they always do this.