If both have a green light, straight through traffic has right-of-way over turning traffic.
At the 4-way mentioned above, the person to your right has right-of-way as stated, assuming all are going straight. Anyone turning loses their r-o-w.
* Unless one of the vehicles is a mail truck. Federal vehicles get automatic r-o-w. Also emergency vehicles.