PRODUCTS do not teach anyone to play the piano (or any other instrument). PEOPLE teach other people to play. The various products (lesson books, exercises, metronomes, videos, etc.) help both the teacher and the student cover a range of musical material in a sensible order.
People make products that teach. You learn from the person through the product.
Everyone's different; maybe in the OP's situation right now, it is better to find something online. (Go at your own pace kind of thing.)
Sometimes it's better to get started yourself before looking for a teacher; that way you find your own learning style and get comfortable with the instrument first.
And you'll know what to look for in a teacher, more or less. Let me be plain: there are
some pretty bad teachers out there.
On the other hand, a good
teacher will correct your mistakes early on and prevent injury and bad habits from developing.
It depends on where you want to go with piano and what you're willing to put in.
If it's just a short whim, then an online product will be enough. If it's a long-term hobby/goal, then you'll want to look for more.