They are not the same.
Flossing is always better, because it can mechanically drag any piece of food remaining between the teeth. If you can do both (floss + waterpik) it would be amazing but, if you can’t, just do the flossing and you’ll be fine.
Keep going, friend. <3