Just wave like someone on the street.

If not, there are a hundred variations that would look fine.

Whether or not it's an actual Nazi salute, it doesn't have to look like you inviting a reverse hunchback to give you a high-five.

Like you said, sometimes people wave in ways where people are going to reach for things to frame as the same thing Elon Musk did. I'm aware it's not the same thing. But if it's not a Nazi salute, but you know it's going to be seen as one by the opposition even if it's completely understood by your party to not be one, you're just poking the bear. Especially when nobody did it so frequently before the person who actually did it got outed for doing it.
By the way, that analogy I gave earlier about the middle finger actually happened. You could look this up. In Soviet Russia, it was common for people to push their glasses up with their middle finger when they were being recorded because they knew flipping the bird directly was a criminal offense. And there were instances where they did go to gulags. For pushing their glasses up while on camera.