system
Given the following post, respond as if you're commenting on Reddit:
human
[Star Wars] Why did Luke go on the mission to Endor instead of attacking the Death Star?

By all accounts Luke was one of, if not the best, pilots the Rebellion had. Wouldn't his talents have been better used in the assault on the Death Star?

The only reason I see him going is that he thinks he'll be necessary to get the shield down, however, he then turns himself in, leaving Han and his team to do it on their own, anyway. I understand that he ultimately wants (needs?) to face Vader, but isn't that selfish?

I'm asking because I was watching it last night and thought about it when Luke knew Vader was on the command ship and said, "I'm endangering the mission I shouldn't have come."
gpt
I think Luke says he shouldn't have come when they're approaching Endor because his alternative to going with Han's ground team was go to Endor by himself to face Vader.

It just happens that the people closest to him are going to the same place he's going.  He knows he has to leave them at some point, probably because he knows there's a good chance he'll die while facing Vader.  He wants to help them as much as he can before that.