One way of thinking about this is in terms of kWh rather than cents.
If you supply a kWh to the grid at midday and then consume a kWh overnight, what should your balance of payments be? If you're getting the wholesale rate during the day, do you also get the wholesale rate at night?
What this is really about is, how should we pay for the fixed costs of the infrastructure?
There isn't an objective answer to that. You could say that everyone pays a fixed service charge and then there is no contribution per kWh, and then the per-kWh rate for retail and wholesale are exactly equal. That's the most economically efficient thing, but then people who don't use a lot of electricity are paying a high fixed fee.
Another high efficiency thing is to use time of day metering, so that the difference between the wholesale and retail pricing is highest when supply is most outstripped by demand. That also gets rid of your problem with solar because then they can get retail, but get retail based on the time of day, so supplying power when it's cheap and using it when it's expensive isn't going to net out.
But charging retail and paying wholesale to the same customers isn't ideal, because those customers also have a choice. If they're getting paid $0.04/kWh for generation during the day but then paying $0.12/kWh or more at night in order to pay for the infrastructure, they might find it more economical to install a battery system locally and then stop buying power from the power company at all on most days. And then they're still not contributing anything per kWh to the fixed costs of infrastructure, but now you've actually made it worse, because a local battery system is going to be configured to align with the needs of the owner rather than the needs of the grid. Instead of incorporating the battery system into the grid so it can dump its full capacity during the nasty part of the duck curve and then fulfilling the lower demand for the rest of the night from baseload generators, the homeowner has the incentive to sell nothing from their batteries to the grid at 7PM (because they're only getting wholesale) so they can have it left to use for themselves to avoid paying retail at midnight.
Then the grid still has to cover its fixed costs from the other customers and can't even affect their usage with time of day metering because retail off-peak is too close to wholesale on-peak.