As a matter of logistics, your claim isn't nonsense. But it is quite obviously false. The consumer gives money to the merchant. The merchant gives money to the government.
As a matter of legislation, it is, once again, plainly false. Here's the beginning of the California law imposing the state sales tax ( https://www.cdtfa.ca.gov/lawguides/vol1/sutl/6051.html ):
> For the privilege of selling tangible personal property at retail a tax is hereby imposed upon all retailers at the rate of 2½ percent of the gross receipts of any retailer
(emphasis mine)
And the law _must_ be stated that way, because if a vendor is selling something for $100 + sales tax, the customer pays $100 ("no tax"), and the vendor accepts it, the customer hasn't violated the law. The vendor is allowed to charge whatever price he wants. It's the vendor's responsibility to pay tax on the $100 of gross receipts he just received.
There is no framework in which "sales tax is paid by the consumer" is true. What were you thinking?