I don't know insurance law well enough to say if that's legally discrimination.
Now if you're asking me personally, I dislike the insurance industry in general. Insurance shouldn't be required, legally or otherwise. At that point insurance companies can use whatever data they want to price policies, as long as the terms are clear customers would actually have a choice whether they want insurance or not.
Companies use many forms of data to change premiums, many you don't have much control over (e.g. what area of the country you live in). Why is that wrong?