I have gone through loads of articles about people telling to remove swap partitions to optimize SSDs. Looking at the upside of having swap utility , why not go for a swap file? What will be the difference?
There would be no real advantage/disadvantage.
They are two methods of accomplishing the same goal.
As to why we try to avoid it on an SSD, you might want to check out some possible duplicates: