Best video: hands down Apple i-phone (apparently this word is banned huh?).
Best photo: Samsung Galaxy S22/S21 Ultra or Google Pixel. It's proven so many times that Google Pixel has the best colour science (digital processing) in terms of photos. Apple products seconds this.
If you're planning to shoot static videos of table tennis WITHOUT thinking about 60FPS video and in good lighting conditions, then any 250$+ smartphone will do.
IMO: I better get convenience of Android and a little worse camera experience with my Galaxy S20 Ultra than to have to use iOS. And photos on my phone come out better than my girlfriends' Apple phone 12.