To be honest, a 4.0 and even 2300+ guarantee nothing at Ivy’s and top 20 schools.
In your mind, you may think you are competing with only a few thousand kids with top scores and grades like you.
In reality, you are competing with tens of thousands of kids with good grades, good but likely lower scores than you have, and some other hook - athletics, activism, diversity, etc.
It is truly a lottery. The sooner you can reconcile yourself with that, the more realistic your expectations will be.