It's a great song. But it depends. Top 10 of all time? No. Top 20 to 30? Probably. And those voting no aren't delusional. Last year, TIME Magazine released a list of the best pop songs of all time and it wasn't included so they're not the only ones.
It's certainly Britney's best and most memorable song. I hear it on the radio sometimes too, but its legacy is not as huge as Britney stans make it out to be.