The problem is it's hard to unlearn bad technique. If you play scales wrong you can get stuck progressing and have to start over while suppressing the urge to just play like you always did.

You're right for "serious" learning. But for most people, the alternative is not learning anything at all! The best technique is the one that'll actually make you play the piano

Bad technique on unserious learning can still lead to serious injuries like RSI.

Proper technique is also important so that playing is actually fun and not painful. Even just a few lessons on how to properly sit, how to avoid tension in your hands and so on can go a long way. There are video lessons that explain that stuff as well but you need to be very disciplined and really repeat these lessons over and over.

You can absolutely self-learn the piano. People that genuinely don't have the money for a teacher shouldn't let that stop them but it absolutely is harder. Set yourself up for success if you can.

There is no such thing as serious/non-serious learning.

I take weekly music lessons and have been doing that for a decade. After every lesson -- since the very first one -- I am amazed by how many simple things that I get wrong, and how many different areas where I could improve. The teacher just sees/hears that immediately, when you have no idea what you did wrong. And the music just sounds different.

Not only that, the teacher discusses the piece with you, tells you the efficient way to practice (a specific piece or specific passage) etc.

You would probably sound ok to a random stranger, but you quickly hit a bottleneck. You spend a lot of time doing incorrect/inefficient things without knowing it.

$100/hr is expensive, but well worth it.

I think learning how to unlearn is part of it. You'll often encounter music that is fingered unintuitively when learning increasingly difficult pieces. Plus if you're able to play legato at 100% speed guitar hero style you've probably discovered a mostly correct fingering anyway.