"what" means "the thing that" (though direct substitution produces a stylistically poor sentence). The comma is incorrect in my opinion.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
bellasedenSo it is correct to use "what" here?Yes.
bellasedenWould "as" be a better choice?"as" would work too. I wouldn't necessarily say it is better. Both work (in grammatically slightly different ways).