Well, it's not possible for us to diagnose whether it may be cancer or not over the internet. HOWEVER, melanoma usually occurs due to repeated exposure to the sun, and sunburns. Not always, but that is the highest risk factor. It could be, as you suspected, the fact that it is on a place where it gets abraded by clothing. While it is sensitive, you might try putting a bandaid over it, or a patch designed for foot corns and callouses (they are stickier).
In the meantime, check this article for signs and risk factors: https://www.mayoclinic.org/diseases-conditions/melanoma/symptoms-causes/syc-20374884
If you are concerned, it is always best to have a doctor take a look.
I didn't really finish my thought - unless your hip area has been exposed to a lot of sun, the chances are extremely low that it is melanoma.
Definitely have it checked out. Prior to a story I heard last week, I would have tended to say it's probably nothing to worry about. But someone was telling me about his 17 YO daughter who had a bump (of normal skin color no less) on her hip. She wanted it removed because it would catch on her underwear. The derm told her dad that it would cost $400 since it didn't appear suspicious hence insurance would not pay so it was not removed. Fast forward to a year later when she turned 18 and she went back to the derm and said now that she could make her own health care decisions, she wanted it removed. Per the pathologist, it didn't seem normal. It was examined by three different pathologists and determined to be melanoma. Best of luck to you. Let us know what you find out.