I feel like in terms of hardware they were largely the same. I'm sure some tech expert can explain why I'm wrong, but I never noticed a major difference when I played at the eyeball level.
In terms of software, PS4 has an edge. But for multiplatform games I would usually buy them on XBox simply because I liked the controller better.
For me, the PS4 comes out slightly on top simply for Spider-man.