You're using a BMW as an anecdote yet quibbling about Toyota's marketshare? Of course not every single care manufactured today will last forever. Some are junk. Some, like Toyota are quite good and with proper care and maintenance survive a long time. I could add Nissan and Honda to this group. There are other makers that are also building very good automobiles.
Today's automobiles are generally very reliable and with proper maintenance, long lasting.