There are actually many states where using the turn signals to change lanes isn't even legally required though, so things are more mixed when it comes to changing lanes vs. making turns.
Arizona is one state where it is required judging by a warning I got from a friendly highway patrol officer who chased me ~5 miles while I was having fun on the old ninja during morning rush hour.
I—and everyone I know—would leave their blinker as they creep forward, "requesting" that someone leave a gap big enough to take the exit.
Same thing goes for the left turn on yellow light. If there is a gapless traffic coming from the other direction, you will probably just creep in the intersection and turn at the end of the yellow, when the other cars have stopped. Nevertheless, by doing so, you are doing two illegal things: 1) going further than the stop line and 2) passing on a yellow (or even a red) when you could have stopped (easily, you were already stopped). Is it a bad thing that people (again, including me) do this? Probably not, doing otherwise would be a huge loss of time for everyone and it does not really increase the accident rate. Yet, it is against the law.
“The driver or operator of a vehicle upon a highway, before turning to the left or right at any intersection or into a private road or driveway or from one lane for traffic to another lane for traffic or to leave the roadway, shall first see that the movement can be made in safety, and, if the operation of any other vehicle may be affected by the movement, SHALL GIVE A SIGNAL PLAINLY VISIBLE TO THE DRIVER OR OPERATOR OF THE OTHER VEHICLE OF THE INTENTION TO MAKE THE MOVEMENT."
I guess one reading of this suggests that you must first check if it would be safe to make a maneuver, and if so, then and only then, must you use a turn signal. I think you could also read this as requiring safety checks and indicating (in either order) before turning, but I'm not a lawyer. I can't imagine that people are actually prosecuted for signaling out-of-order though.
The driving handbook, however, tells you to check your mirrors, then "Signal that you want to move left or right." (here: https://www.ontario.ca/document/official-mto-drivers-handboo...) which seems to suggest some level of intention-indicating is okay.
While this is illegal in some states, it is not in others. Furthermore, the general rule on reds (again, this might vary by state) is not that you should not be in the intersection, but that you cannot enter the intersection. If you are in the intersection, when it turns red, you clear the intersection.
It is against the highway code to do that, so can't be programmed in, as this would be ultimate premeditation of breaking the law.
On the other hand, in the real world, this is how people sometimes use turn signals, so autonomous cars are at a practical disadvantage and can't merge when a human driver could.
Edit: This depends a lot on context. The relative speeds of the two lanes, whether there's a merge, and so forth. If there already had to be enough space to safely change lanes without any other cars slowing down or reacting at all, then turn signals would become unnecessary. Often there's an opening, but to really make it safe the car behind you in your target lane does need to yield to make it safe, and the turn signal is a request that they do so (or at least not speed up).
It seems like just one of the challenges for autonomous operations. Driving that is pretty much necessary in some locations (and to do otherwise would cause other drivers to route around you in unsafe ways) would often be seen as hopelessly aggressive in others.
Are you certain about that?
When I learned to drive, we were told to indicate a few seconds before turning, changing lanes, etc. This communicates your intentions to other drivers. In other words, the blinker says, “I’d like to get in the left lane” or “I’m getting off the highway”, not “This car is currently moving leftward.” Otherwise, why not just connect the turn signals directly to the steering wheel?