I won't agree with that. What Carrey has got is the perfect sense of witty jokes and irony in his personality. The latest movies with Sandler are mere romantic comedies for girls, no fun at all
Carrey. Sandler's comedies involve him mostly just screaming a lot, cursing, getting angry, stuff like that. Though one could say that Carrey's comedy is the same just with him acting zany, I think in their respective careers Carrey was able to showcase more comedic diversity than Sandler before the two of them started getting into more serious movie roles.
Jim carrey is funny but can be a little too animated at times. Sandler also does a good job. I think they are different kinds of comics and both do a good job.