A company can make a risk assessment if it chooses, but it can't change the price because of that assessment as it's gender discrimination risk.
No, it's not.
I resented very much growing up as a single lad with a relatively powerful 2-seat mid-engine car, and paying 1200 bucks a year (back in 1986) to insure it. This was at nearly 30 years of age, mind you, and 25 is a
major drop in rates.
I never ever, for even a single oscillation of a cesium atom, felt I was being discriminated against. Yes, a married female driving the 4-cylinder version of the same car would pay less than half what I paid. Factors: the car is slightly less expensive, she's less than half as likely as I am to crash it into somebody (there were no cell phones then, and no texting, so all she had was the radio-cassette -- a CD if she was up-town.) Why would I get a break for that? There's nothing even remotely discriminatory about it.
If that same woman applied for a professional position, for which she was eminently qualified, years of experience, much previous success, and I went in as an untrained, inexperienced dufus looking for the same job, yet was hired instead of her, and for the same, or even more money, then see,
that's discrimination. The person who should have benefited in the situation is left out in the cold.
Same thing with insurance. If she doesn't get a lower rate by being a lower risk, but instead has to subsidize my higher risk, also at a benefit to me of a rate closer to an arbitrary median, then
now she's being discriminated against. I am
not being discriminated against by paying a higher premium for my higher risk. Gender has EVRYTHING to do with that, and it's a legitimate factor, most especially in the late teens and early 20s. The male "Pick me! Pick me!" gene is not very thorough in behavior selection and the decision making that goes along with that.