I can't speak to the Gen 4 G22, but I've had a Gen 2 model in 40 S&W for years. As suggested in my sig. I also have a 5" M&P Pro Series and a Shield in 40S&W. My personal perception is that the Glock falls between the full size M&P and the Shield in felt recoil.
Much more important in a decision between the two brands, in my opinion, is which of the two points more naturally for you. In my hands the Glocks always point high while the M&Ps just point more naturally.
For a quick test, grip the pistol in low ready position and, making sure you are pointing in a safe direction, pick a spot in the middle distance, close your eyes and point the pistol at it. Now open your eyes and see how the sights are aligned. As I said, for me doing that test, the Glocks always turn up needing me to adjust my wrist to bring the front sight down to the plane of the rear sights. At a critical moment, I'd just as soon not have to contend with that.
Much more important in a decision between the two brands, in my opinion, is which of the two points more naturally for you. In my hands the Glocks always point high while the M&Ps just point more naturally.
For a quick test, grip the pistol in low ready position and, making sure you are pointing in a safe direction, pick a spot in the middle distance, close your eyes and point the pistol at it. Now open your eyes and see how the sights are aligned. As I said, for me doing that test, the Glocks always turn up needing me to adjust my wrist to bring the front sight down to the plane of the rear sights. At a critical moment, I'd just as soon not have to contend with that.