Of course that's why I mention it to make sure people aware of that, some prefer to wait till after the divy to enter.
Technically the price drops on the ex div date by the amount of dividend but 1 micro second later that will blur in the normal days price action. Companies that have been paying dividends for decades it's not about pricing in the next dividend, you can argue it's priced in the dividend in perpetuity.
My personal trading experience is that you are better off not avoiding the dividends, would only give me pause the day before the divy or if the stock had a small float. Even on my shorter term portfolio I shoot for 2.5-3% of my annual return to be from dividends.