Malls were just a way to privatize mainstreet and allow the ownership class of capitalists to extract more money from a local economy through large chain stores and to give them private control over what used to be public space.
Now the middle class is worth a fraction of what it used to be, their purpose has dissolved.
People use Amazon instead of the mall because they can still afford the Temu-level garbage Amazon sells.
Both have temu-level garbage, but it's cheaper on Amazon.
Currently, as they are dying today, yes.
This is not how malls have traditionally worked.
In the past, malls provided a plug-and-play way for national chain retail to offer premium, private-labeled goods that allowed them to extract money away from a community's locally owned stores found on main street.