Hamilton tells appeal court he did no wrong at Spa
The 23-year-old championship leader was demoted from first to third at Spa-Francorchamps after cutting a chicane in a duel over the closing laps with Ferrari's Kimi Raikkonen.
Although he gave the place back on the straight before overtaking the world champion into the next corner, stewards ruled the Briton had gained an advantage by failing to give the place back satisfactorily.
Asked whether he had done so, Hamilton told the International Automobile Federation (FIA) appeal hearing: "I believe so hand on heart."
Hamilton, who will see his lead over Ferrari's Brazilian Felipe Massa stretch from one point to seven if McLaren win their appeal, said he had no choice but to cut the chicane to avoid a crash with Finland's Raikkonen.
"When the track is damp and you are at the end of the race, the last thing you want to do is to crash with him. You do not have to take stupid risks," he said.
"When you drive the circuit, you think about staying between the two white lines. There is no if or when," he added under intense cross-examining by Ferrari.
Hamilton, whose next race is Sunday's Singapore Grand Prix, said race director Charlie Whiting had wrong-footed McLaren by suggesting at the time that the team were in the clear.
"I know that the team were talking to Charlie. I would have given (the lead) back if they had told me to do so. It was a shame we were told it was OK," Hamilton told the five judges.
Whiting said he gave wrong advice to McLaren because he had only seen the incident once live when they asked his opinion.
"It became clear to me after seeing the incident in a more detailed way that the whole advantage had not been given back," said the race director.
Hamilton added that he did not know he was not allowed to attack Raikkonen at the next corner, a ruling clarified only before the subsequent Italian Grand Prix.
"I did not hear about this rule until Monza," he said. "I was going to overtake him anyway."