Of course you can!
I definitely have increased the price of consulting for "annoying" customers doing stuff I don't want to do. Many moons ago, I was doing some contract training for a small airline here in town. I liked teaching but I didn't really want to do the training they wanted me to do - it was a pain in the ass, it took a week, and didn't really pay enough to justify the opportunity cost.
So I kept raising my price, and eventually, they stopped asking me to do the training. It was great because I didn't have to do the thing I didn't want to do anymore, and I made more money. You are allowed to charge different people different amounts of money - some people are just a pain in the butt and charging more pays for the lack of sanity.
I agree with the principle but where I think price discrimination goes too far is, for example, Uber charging people more by age or statistically imputed income. Or PlayStation charging more for a game by the time of day.
But you don't have a way to figure out what your competitors are charging and have automated systems find the maximum you can extract without losing the customer
But that's just charging different amounts for different services. Not at all the same as the typical end user price discrimination which is all about charging whatever you can get away with with that particular cusomer.