Details, details! (They can matter … a lot!)
For those in hard water areas and using the "melt with plenty water" route, acidifying the water (splash of vinegar or lemon juice) helps to minimise the amount of soapy sludge formed at the water/wax boundary.
But you do have options
1/ dump the honey (as above, melting out the wax)
2/ recover the honey mechanically - commercially it is pressed out, hobbyists can buy "cappings bags" and spin them in their extractor. Thorne also offer an optional extra "cappings drier" cage for their Universal extractor series.
3/ Traditionally, the cappings washings were the raw material for making mead (don't acidify the water!)
4/ Some folk like to pre-wash the cappings in booze, straining to make a honey liqueur. Basic supermarket vodka is said to work well. (My Scottish genes make me think this would be ideal before washing for mead making! Waste not, want not!)
5/ Or you can get the bees to recycle the honey. A rapid-type feeder, with the cone lifted out, is useful for this.
After bee-scavenging, a prize-winning wax exhibitor told me that he washes his cappings (tied inside an old pillowcase) in lots of COLD water, before doing any melting.
And there may be other options (beekeepers being beekeepers!)
However, my preferred route is to use hot-air-gun uncapping. No cappings wax, and ALL the honey goes into the extractor.
Hence the problem of dealing with cappings simply does not arise.
Odd scraps of wax from inspections add up, and not being a candlemaker, I seem to be accumulating wax, even without cappings!