That was the line we were sold by cloud vendors. There is a reason that significant portions of both native cloud and migrated workloads are shifting back to self-hosted; the cost savings never materialized.
Of course - every pay as you go service that goes above a certain amount of utilization will be better replaced with up front investment. But that doesn't mean that the opex model is bad in general; you've just only picked cases where it's bad.