Who would win Batman or Spiderman my friends and i have been trying to figure this out

we have the rich genius may not have superpowers but is an expert in martial arts and could create all of spidermans inventions and plus has Albert

Spiderman is a genius but isn't rich or good in martial arts but has spidey sense and agility and stamina
a friend and I think Batman is better my two other friends think Spiderman is best but I,knew you guys would be able to tell the real story