Hey guys, so let me ask you

I was always told to check the oil cap on used cars went wanting to buy if its milky or not to confirm head gasket issues....now I never heard of them on a C43 but after a 20 min drive we opened the cap and its all milky...not just the cap but if u look inside where you fill the oil its alot of that stuff there too. Keep in mind the car for the last 4 months has been going in and out of the shop when the place closes so could this be general moisture buildup or is this thing fucked- walk away?

It has been in an accident aswell for sure...even though the car fax didnt state it...the paint tone was different on 2 doors and especially since in between the seats I have found smashed glass pieces....the only reason im thinking of this car is because its $7000 with $174,000 kms.