Won't be much difference in running costs or maintenance.
It's a softer driving experience in a 740i with the cornering being a bit more wallow'y.
I'd recommend picking an e38 with full BMW service history and recent replacement of things like tyres, radiator, brake pads, suspension parts etc.