The optical sensor is not more reliable at detecting occusions in a different section of the windshield, it is useless for that.
$5 = 3kWh = 800 hours of operation at 3.6 W.
Edit dropped a decimal.
$5 = 30kWh = 8,000 hours of operation at 3.6 W.
Or, at 300k cars per year, Tesla saves $1.5 million to put toward other CO2 reducing initiatives like solar in GF1. Since solar is $1 a watt, that is a net reduction in emissions over an off the shelf sensor.
But, again, why pick on the rain sensor NN (which has a necessarily role) when there are much more power hungry drains on electricity which don't?
Radio - optional
Heated seats - optional
Heater steering wheel - optional
Clear view of the road - required, unless you want to drop the optional AP entirely which would save a lot more energy than 3.6W.